how can i get a module to run automatically on a schedule?

  • Thread starter Thread starter Nancy Drew
  • Start date Start date
N

Nancy Drew

hi all

i'm trying to figure out how to get a module to run automatically on a daily
basis. is it possible to have a scheduled tasks start up access and call the
module? if not, is it possible to have a visual basic app do this?

tks
 
One way would be to create an AutoExec macro that calls your function.
Then create a batch file something like this

Start /w C:\"Program Files"\"Microsoft Office"\Office\MSAccess.exe C:\Path
to the mdb file\myfile.mdb ( all on 1 line and include all the spaces and
put quotes around folder and file names that include spaces.)
Substitute the path to the msaccess.exe file from your PC and the actual
path to your app.
Save the file with an ".bat" extention

Use windows scheduler to start the batch when you want.
This is a crude down and dirty approach, but it works. Will work with win
98, me or XP.

Hope this helps
Rosco
 

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

Back
Top