Can access finish a script after close

H

halfbodyguy

I am trying to make a file update sort of thing for when I make changes
to the user-side MDB
I have it checking byte size vs the master copy on a server. My desire
is to have it copy it, close the one its in, and rename the copy to be
the original. Obviously the problem is that the renaming cant be done
after access is closed... Is there any way anyone can think to automate
this process?
 
W

Warren

I'd use a batch file... Have your users run a .bat not a .mdb or .mde


eg.
-------------------------------------------------------------------------------------------
@echo off

if not exist "h:\DatabaseFolder" mkdir "h:\DatabaseFolder"
xcopy /y /q "G:\MasterDBFolder\*.*" "h:\DatabaseFolder\*.*"
start /max D:\Apps\Micros~1\Office\msaccess.exe
"h:\DatabaseFolder\MyDb.mde"
exit
 
B

Barry Gilbert

This won't work if the file already exists but is a different version of the
server copy, which is what he's looking for.

Barry
 
Top