>>I am trying to get a command button from a Form1 to open a Form2 on the click of the mouse.
>>I've tried (under Mouse Click) the user procedure...
>>
>>form1.command1.click
>>do form2
>>
>>It works sometimes, but gives me error messages other times "Error - Form1 not found"
>>Is my procedure incorrect or am I missing something else? Please help!
>
>Firstly, it's enough to have just DO FORM2 ... in command1.click.
>If you mean to imitate button click when you click in any other area of form, then it's good to use 'Thisform' instead of 'Form1'.
VFP can't find your from file. Make sure that the directory where your .scx resides is in the path. Sounds like either you are changing your default directory around, or resetting the path.
Erik Moore
Clientelligence