How to submit and close database

T

Trudy

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?
 
V

Van T. Dinh

Add the statement:

Application.Quit

as the last statement of your CommandButton_Click Event Procedure.
 
T

tina

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
 
Top