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 automate a logoff when Access Closes

Status
Not open for further replies.

hiker0310

MIS
Apr 3, 2002
14
US
I have the database open on startup and I would like it to logoff the computer when Exiting Access. Can someone Please help me with this. I can make it work if I start Access with a batch file and have the batch file logoff the system when I exit access but I was hoping for a Macro or VB Code that would do this.

Here is the Batch code.
Rem ***** Begin Code *****

c:\database.mdb
logoff

Rem ***** End Code ******
Stephen Ludwig
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top