How to submit and close database

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a simple form with a submit button that saves the record and closes
the form. How can I make that same button close the database as well?
 
Add the statement:

Application.Quit

as the last statement of your CommandButton_Click Event Procedure.
 
add a Quit action to the macro or VBA code behind the button. as a macro,
Action: Quit
in the Action Arguments, choose the Option that suits your needs.
in VBA, as

Application.Quit (again, choosing the appropriate option)

hth
 
Back
Top