Hi!
"thisform" is not available outside of the form code. ON KEY LABEL is outside of the form - it is a global definition. You require to access your form by another way, for example:
_Screen.ActiveForm.Edit.Click
HTH.
>I applied ON KEY LABEL F2 thisform.edit.click during INI in my form
>but error when I press F2 button
>so how to use function key to click my Edit Button instead of using mouse ?
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.comICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs
It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.