Running code when I leave a subform

  • Thread starter Thread starter Stephen Glynn
  • Start date Start date
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
 
Stephen,
The subform itself has an OnExit event. In design mode for the Main
Form, single click the subform and find the OnExit event.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top