>In Form2, create a command button called Command1.
>For command button Command1 On Click Event, I've typed in the following statement:
>
>Dim frm1 as string
>
>frm1 = "Form1"
>load frm1
>
>Then when I run the Form2 and click on command button Command1, error message appear.
If you call it like this, my guess would be that a frm1 has to exist, which is why it is returning an error. What you want here it to load the form Form1 which is contained in the variable frm1. Maybe someone who knows the exact syntax will be able to help you.
In Visual FoxPro, we would use the (frm1) syntax for that. I am not sure about Visual Basic.