I have a database that is currently setup as:
(1) Backend Data - stored on shared network drive
(2) Frontend DB - "Installed" on users' machines
The backend holds a table that contains the LATEST DB version number available.
The frontend holds a table that contains it's version number.
Upon opening the frontend database, I want it to check if it is the latest version. If not, then I want it to close down, copy the new frontend to the local drive and restart.
Obviously I cannot copy the new file while the database is open. Therefore I tried the following:
(1) Created a BAT file that pauses before copying the file.
(2) Code within Access calls the BAT file (using the SHELL command) then quits Access.
(3) The user presses a key, the file is copied and the frontend is opened.
That is the theory anyway. It doesn't seem to be working as planned. Two main problems:
(1) The BAT file doesn't run properly from Access. I see the MS DOS PROMPT flash up on the start bar, then disappear. Therefore the BAT file doesn't actually run.
(2) When I run the BAT file manually, the database opens. However, the MS DOS PROMPT does not exit until the database has closed. I would like it to close as soon as the DB is launched.
Can anyone help me setup an AUTOUPGRADE feature?
Many thanks,
S
(1) Backend Data - stored on shared network drive
(2) Frontend DB - "Installed" on users' machines
The backend holds a table that contains the LATEST DB version number available.
The frontend holds a table that contains it's version number.
Upon opening the frontend database, I want it to check if it is the latest version. If not, then I want it to close down, copy the new frontend to the local drive and restart.
Obviously I cannot copy the new file while the database is open. Therefore I tried the following:
(1) Created a BAT file that pauses before copying the file.
(2) Code within Access calls the BAT file (using the SHELL command) then quits Access.
(3) The user presses a key, the file is copied and the frontend is opened.
That is the theory anyway. It doesn't seem to be working as planned. Two main problems:
(1) The BAT file doesn't run properly from Access. I see the MS DOS PROMPT flash up on the start bar, then disappear. Therefore the BAT file doesn't actually run.
(2) When I run the BAT file manually, the database opens. However, the MS DOS PROMPT does not exit until the database has closed. I would like it to close as soon as the DB is launched.
Can anyone help me setup an AUTOUPGRADE feature?
Many thanks,
S