Running code when I leave a subform

S

Stephen Glynn

I've got some code I want to run when I leave a subform and return to
the main form. One way to make it happen would, of course, be to click
a button when I've finished with the subform (that's how I'm testing the
code) but is there a way to make it happen automatically? The code
evaluates whether some check boxes are ticked or not, and then writes to
a table other than the one on which the main form's based.

Steve
 
A

Al Camp

Stephen,
The subform itself has an OnExit event. In design mode for the Main
Form, single click the subform and find the OnExit event.
 
Top