I need to get my database to run as a scheduled task (using the /x option to run a macro). It uses linked tables. I wrote it on Access 2003 on my desktop machine, but the machine I need to run it off is a seperate machine that stays on all the time.
I got the scheduled task bit working on a Windows XP Machine's Scheduled Tasks, launching Access 2033. In the 'Path' section of the task, I put as below;
"C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.exe" full_path_to_my_database.mdb /x mcrAuto
E.g. the path to MSACCESS.exe in double quotes, and no other paths in double quotes. This worked.
However, when I then amended the DB to use Linked Tables, I kept getting runtime error 3151 when it ran any of the queries that used the linked tables. This was weird - it would not even let me view the linked table dialog box where you refresh them - came up with a weird box about missing modules. I assumed it was a broken installation of access 03.
So, I thought I'd try again on a different box, this time it's Windows 2000 and MS Access 2000. I have set up the scheduled task exactly as before, but it won't start, it just says "running" on the main screen, but nothing happens - MS Access does not even open!
Any advise?
I got the scheduled task bit working on a Windows XP Machine's Scheduled Tasks, launching Access 2033. In the 'Path' section of the task, I put as below;
"C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.exe" full_path_to_my_database.mdb /x mcrAuto
E.g. the path to MSACCESS.exe in double quotes, and no other paths in double quotes. This worked.
However, when I then amended the DB to use Linked Tables, I kept getting runtime error 3151 when it ran any of the queries that used the linked tables. This was weird - it would not even let me view the linked table dialog box where you refresh them - came up with a weird box about missing modules. I assumed it was a broken installation of access 03.
So, I thought I'd try again on a different box, this time it's Windows 2000 and MS Access 2000. I have set up the scheduled task exactly as before, but it won't start, it just says "running" on the main screen, but nothing happens - MS Access does not even open!
Any advise?