How to submit and close database

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top