Autoexec and close the database

DevAccess

Registered User.
Local time
Yesterday, 20:27
Joined
Jun 27, 2016
Messages
321
Hello

I am running some function from autoexec macro using run code command and specify function name of vba, now this runs on scheduled activity I would like to close the database when program finishes with the activity.

I tried in vba, application.quit but it does not work and gives me error saying it is not available now.

Please assist.
 
application.quit does work...but you dont need it in the function,
put it in the autoexec AFTER your function.

i use it all the time.
 
application.quit does work...but you dont need it in the function,
put it in the autoexec AFTER your function.

i use it all the time.

You mean to say that I need to create function B and have there application.quite and shall I call function B after function A in autoexec ?
 

Users who are viewing this thread

Back
Top Bottom