Screen.ActiveControl
But the problem is that as soon as you click a button, the button has the
focus, so you will need:
Screen.PreviousControl
But you need to make sure the control can accept text, and that it can
accept it in the right way. For example, Textboxes accept text through their
Value property, whereas Labels use the Caption property. Similarly,
Listboxes (under certain circumstances can accept text input throught their
RowSource property, but only if their RowSourceType property = "Value
List" - even then, you might have to append it using a semicolon (

. Other
controls might throw an error.
You can use the ControlType property of many controls, to determine what
kind of control they are.
Regards,
Graham R Seach
Microsoft Access MVP
Sydney, Australia
---------------------------