Refering to a control on a sub form

Chisamba

Registered User.
Local time
Today, 18:19
Joined
Jul 10, 2006
Messages
12
After checking on the validity of data entered in a contol on a sub form using the beforeupdate event focus is moved to a password field on the main form. After entering a valid password I would like the focus to be returned to the control on the subform. How would I do this. There are a number of controls on the subform that would be validated in this way so writing the code once with a variable that holds the name of the referring control would be best.
 

Users who are viewing this thread

Back
Top Bottom