Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to get access to close after autoexec

Status
Not open for further replies.

hbersani

Technical User
Jun 5, 2003
16
US
I have an access application that I want to execute via a scheduler. I can get the application to open and run but cannot seem to get access (application) to close so control returns to the batch file. I'm using the "quit" action with the "exit" option in the macro screen. Any suggestions?
 
And what about the Application.Quit method (in VBA)?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
PH, unfortunately, I have absolutely no experience with VBA... so I don't know if it will work...
 
I have an application which downloads info every night and then quits. The VBA code that the other commentor suggests works fine. You just need to make sure there's some event that the Quit code can use to respond to.

Have fun!
 
For anyone else who might be experiencing this problem, I located the cause. the macro action just prior to the "Quit" action was a "Close". Because I didn't specify what to close, the close acted on the macro and closed it... therefore, it never got to the "QUIT" action.

 
In an application I recently developed, I made a form that would pop up after a period of time which was higher than the amount of time I reasonably expected someone to be using the program. I chose 25 minutes. On that form there was a message warning the user that the application would close and a cancel button if the user wishes to remain logged in. If the cancel button wasnt hit in 2 minutes, the application closes using the application.quit command. Hope this helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top