>Hilmar, thanks for your reply.
>
>I'm wondering how a menu Shoertcut would work ? . I have a global ON Key F10 which activates a lookup if the user is on a particular text box.
Well, you have a menu item, in your global menu, that does the corresponding lookup. You define a shortcut for it.
To access the current form, you would use _vfp.ActiveForm. You can also use _vfp.ActiveForm.ActiveControl, but that
does not show correctly in the debugger.
To avoid problems with datasessions, you should have a method on your form (defined in the base class for all your forms, of course), and call the form method from your menu shortcut (_vfp.ActiveForm.MyLookup()).
HTH, Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)