help with ActiveControl method

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I want to get the active control to send to routine when a button is pressed
on the form, but all I'm getting is the button as the active control. Is
there a way to get the control that was active before the button is pressed?
 
Screen.PreviousControl

will give you the text in the box that had the focus before the button was
pressed if this is what you want.
 
The PreviousControl Property should be what you want, but don't forget to
error trap in case there wasn't one!

HTH
John
 
Back
Top