>>I didn't notice, you don't use buttons. How do you process F3, in Form's KeyPress? This technique is still valid, but you probably don't need an additional form's property. Just check thisform.ActiveControl in KeyPress method of the form.
>
>Hi Nadya,
>
>ActiveControl sound like it should work.
>
>The help says: Object.ActiveControl.Property[ = Value]
>
>I need: FormControl = THISFORM.ActiveControl
>
>If FormControl == ???
> Do ABC
>ELSE
> DO XYZ
>ENDIF
>
>Mike
if vartype(thisform.ActiveControl) = 'O'
loControl = thisform.ActiveControl
if loControl = thisform.grd1
ABC
else
DEF
endif
endif
If it's not broken, fix it until it is.
My Blog