Quit Access and shutdown

  • Thread starter Thread starter JackS123
  • Start date Start date
J

JackS123

Guest
Hi all,

I need a way to quit access(thats the easy part) and then shutdown the computer.

I have my access database set as the shell, so as of now, if you quit access it just sits there. I need to create a button that just shuts down the computer. No log off, No restart, just shutdown.

Can this be done?
 
I should also state

I should also state that the user that runs access does not have admin rights to the box, therefore the "shutdown" command won't work.

Michael
 
Searching the forum us a great way to discover and learn the answers to your Access programming questions.

The VBA code to restart and/or shutdown a PC has been posted within this forum.

Since the user will not have admin rights to the PC then the shutdown code might not work but the only way to determine that would be for you to try the code I previously mentioned that has been posted within this forum. Just because they do not have admin rights does not necessarily mean that the code will not work.

Good luck and post back with your results!
 
ghudson said:
Searching the forum us a great way to discover and learn the answers to your Access programming questions.

The VBA code to restart and/or shutdown a PC has been posted within this forum.

Since the user will not have admin rights to the PC then the shutdown code might not work but the only way to determine that would be for you to try the code I previously mentioned that has been posted within this forum. Just because they do not have admin rights does not necessarily mean that the code will not work.

Good luck and post back with your results!


I did search the form every post I ran into for xp used the shutdown command. The shutdown command requires admin rights to the local computer. There used to be a rundll way to do it for 98/me. I need a rundll way to do it for xphome.
 

Users who are viewing this thread

Back
Top Bottom