Hello all - I have what I hope is a simple question. I'm looking for advice on switching between forms, specifically in access 2007 (though I suspect that the answer may be similar in 2003).
Overview:
I have summaryFormA and UpdatingFormB. On summaryFormA there is an Updatingbutton that when clicked calls for UpdatingFormB to open. During the opening of UpdatingFormB the Load and Current events trigger code to run, which updates the data in several tables and ultimately reopens summaryFormA to allow viewing of the new details.
Problem(i think):
The tables will generate a locking error asUpdatingFormB still thinks that summaryFormA is still open. I believe the reason for this is that the btnClickEvent on summaryFormA never reaches the End Sub, and is actually waiting for UpdatingFormB to process all of the vba code before continuing.
Question:
Is there a graceful way to change between forms, making sure that formA is completely closed with no code running, before anything on formB starts? Any pointers on what to read in regards to this would also be appreciated.
Thanks,
Mike
Overview:
I have summaryFormA and UpdatingFormB. On summaryFormA there is an Updatingbutton that when clicked calls for UpdatingFormB to open. During the opening of UpdatingFormB the Load and Current events trigger code to run, which updates the data in several tables and ultimately reopens summaryFormA to allow viewing of the new details.
Problem(i think):
The tables will generate a locking error asUpdatingFormB still thinks that summaryFormA is still open. I believe the reason for this is that the btnClickEvent on summaryFormA never reaches the End Sub, and is actually waiting for UpdatingFormB to process all of the vba code before continuing.
Question:
Is there a graceful way to change between forms, making sure that formA is completely closed with no code running, before anything on formB starts? Any pointers on what to read in regards to this would also be appreciated.
Thanks,
Mike