>I'm using a menu command button to create a record in a form. However, the code will only execute from within the form itself. When place in the command button the form runs but does not completely run all the code from the command button, it seems to stop processing the code when the form runs.
>
>I use thisform.release before all this other code, is that the problem?
Hi Rebecca,
May be I didn't fully understand what you mean by *menu command button*
is it menu choice or command button on the form, but in case of menu choice you can call the code from object on the form this way:
_screen.activeform.myObject.myObjectMethod()
Of course if you use thisform.release in the middle of the method code you will meet weird things.
Nick
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro
"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison