The most straightforward way to do this is to create a Macro (named RunIt
perhaps) which uses a Runquery action to run the query, followed by a Quit
action to close the database. Then you can use Windows Scheduler to launch
msaccess.exe at the desired time and frequency; in the command line use
The most straightforward way to do this is to create a Macro (named RunIt
perhaps) which uses a Runquery action to run the query, followed by a Quit
action to close the database. Then you can use Windows Scheduler to launch
msaccess.exe at the desired time and frequency; in the command line use
I have limited knowledge of access but I have managed to follow your
directions perfectly. I have just one problem. The query is accessing data
through a link to an SQL so to run the macro it is asking me for the ODBC
login and password. I can enter the login and password and it will finish
just fine but it's not really automated if I have to sit here and do that.
Any suggestions for that part?
I have limited knowledge of access but I have managed to follow your
directions perfectly. I have just one problem. The query is accessing
data
through a link to an SQL so to run the macro it is asking me for the ODBC
login and password. I can enter the login and password and it will finish
just fine but it's not really automated if I have to sit here and do that.
Any suggestions for that part?
If you using a standard linked table to sql server, then simply delete the
linked table, and re-link that table to sql server. On the "last" step when
you choose the table, there is a check box to "remember" password.
so, if you check that box when linking the table you not get a logon
prompts....
And, for scheduling ms-access using windows scheduler, I have a nice
solution here you might consider:
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.