I am having trouble applying two macros to run when closing out a form in Access; each macro runs a separate Update Query. I have tried fixing this two different ways, but can't seem to get it to work either way.
#1 - I go into the OnClose property of the Form, and enter a macro to run, and it will work ok. But I can't figure out how to enter two macros in the OnClose property to run one after the other.
#2 - I tried combining the two macros into one, but was unsuccessful at that also. It will only run the first one listed. My macro has the MacroName, then a condition of MsgBox("Confirm changes?",1)=1 to ask the user to confirm changes before closing the form and running the update query, and finally the action is OpenQuery with the Update Query listed below. When I list both OpenQueries in the same macro, it only runs the first one.
Someone please tell me where I am messing up! Thanks!
#1 - I go into the OnClose property of the Form, and enter a macro to run, and it will work ok. But I can't figure out how to enter two macros in the OnClose property to run one after the other.
#2 - I tried combining the two macros into one, but was unsuccessful at that also. It will only run the first one listed. My macro has the MacroName, then a condition of MsgBox("Confirm changes?",1)=1 to ask the user to confirm changes before closing the form and running the update query, and finally the action is OpenQuery with the Update Query listed below. When I list both OpenQueries in the same macro, it only runs the first one.
Someone please tell me where I am messing up! Thanks!