Can access finish a script after close

  • Thread starter Thread starter halfbodyguy
  • Start date Start date
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?
 
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
 
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
 

Ask a Question

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.

Ask a Question

Back
Top