Overriding code

  • Thread starter Thread starter tpitman
  • Start date Start date
T

tpitman

If I have some code on a field in a form, and press a button to clos
the form, the field code is executed first, and I need to re-press th
close button to close the form. Is there a way of over-riding code.
 
Usually, Access will go through all the necessary events and close the Form,
e.g. Control_AfterUpdate, Control_LostFocus, Form_Unload, Form_Close,
without any problem.

It sounds like your code actually cancels the event and stops Access from
closing the Form.

Put a breakpoint on the appropriate Event of the Form and trace the code
using Step-by-Step execution of code and see whether any Event is cancelled.
 
Back
Top