running an external command

S

Sergei Gorkov

How do i run an OS command from Access?
What I need to do is to automate backups of a database.
a) compact it with compact Repair
b) ZIP and copy t some location

Thanks a lot!
 
R

Ron Weiner

Look at the Shell() command. It allows you to run any external program.
BUT be carefull as Your code will continue to execute while the external
command is still running. Access does not wait for the external command to
finish executing before executing the next line in your module.

If you want your code to stop executing until the external command is
finished, take a look at this link.

http://www.mvps.org/access/api/api0004.htm

Ron W
 

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