Mike is quite right about ActiveControl. One further point, however: If you are on a grid the ActiveControl.name will give you the grid name, not the textbox or column name.
Barbara
>I have set my form's keypreview property to .T. and from within the keypress event of the form I am trying to figure out how to tell which control has focus when a key is pressed.
>
>How can I do this?
>
>Thanks,
>Paul