I'm having a strange problem.
We started out with two databases (Financial and Client Info). The client info database needs to be updated with information from the Financial database weekly. Each database is stored on two separate network shares:
\\Server1\All Staff\Client Info
\\server2\finance team\Financial
To transfer the data, we created two queries. Each of the queries are make-table queries that take data from a table in the Financial database and copy to the Client Info database.
To help with the execution of the process we created a macro (Financial_Transfer) that executes the 2 queries.
When you’re logged in and run the Financial_Transfer macro it works. – All is good so far.
Now to do this automatically.
We created the batch file below:
"C:\program files\Microsoft Office\Office\MSAccess.exe" "\\server2\finance team\Financial.mdb" /x Financial_Transfer
The batch file is located on the same share as the Financial database.
We used the task scheduler to automatically run the batch file. If a user (with proper permissions) is logged on, the task runs as expected.
Great.
Now to Automate not based on a user being logged in. The This is where the process goes bad. It will continually hang in the “running” state. In addition, it locks the database (not exclusively).
Additional notes:
1. The only way the tables in the Client info database are updated is by this method.
2. W2k Workstation
3. Access 2000 SP3
Any ideas? Am I missing something? I thank you in advance.
We started out with two databases (Financial and Client Info). The client info database needs to be updated with information from the Financial database weekly. Each database is stored on two separate network shares:
\\Server1\All Staff\Client Info
\\server2\finance team\Financial
To transfer the data, we created two queries. Each of the queries are make-table queries that take data from a table in the Financial database and copy to the Client Info database.
To help with the execution of the process we created a macro (Financial_Transfer) that executes the 2 queries.
When you’re logged in and run the Financial_Transfer macro it works. – All is good so far.
Now to do this automatically.
We created the batch file below:
"C:\program files\Microsoft Office\Office\MSAccess.exe" "\\server2\finance team\Financial.mdb" /x Financial_Transfer
The batch file is located on the same share as the Financial database.
We used the task scheduler to automatically run the batch file. If a user (with proper permissions) is logged on, the task runs as expected.
Great.
Now to Automate not based on a user being logged in. The This is where the process goes bad. It will continually hang in the “running” state. In addition, it locks the database (not exclusively).
Additional notes:
1. The only way the tables in the Client info database are updated is by this method.
2. W2k Workstation
3. Access 2000 SP3
Any ideas? Am I missing something? I thank you in advance.