Hi
I have some simple code 'FileCopy' which i would like to use when closing the database.
I'm not sure where to put it AND whether it would work as you cant copy a file if this is already open.
My users are using an MDE database on a server. I'm continuously updating the file therefore, when a user quits the MDE, I would use code DlookUp to check a version number on the switchboard (OnClose or OnUnload), IF its different, then I would like to copy it from Server to local C:
HOWEVER, the filecopy will cause an error if the MDE is open!!!
PLUS
I dont know where to put the code?
If there is a better suggestion, please HeLp
Thx
Darin
I have some simple code 'FileCopy' which i would like to use when closing the database.
I'm not sure where to put it AND whether it would work as you cant copy a file if this is already open.
My users are using an MDE database on a server. I'm continuously updating the file therefore, when a user quits the MDE, I would use code DlookUp to check a version number on the switchboard (OnClose or OnUnload), IF its different, then I would like to copy it from Server to local C:
HOWEVER, the filecopy will cause an error if the MDE is open!!!
PLUS
I dont know where to put the code?
Code:
Dim SourceFile, DestinationFile
SourceFile = "\\LynxServer\Lynx\LynxFormsServerVersionMDE.mde" 'Define source file name.
DestinationFile = "C:\Lynx\LynxFormsServerVersionMDE.mde" ' Define target file name.
FileCopy SourceFile, DestinationFile ' Copy source to target.
If there is a better suggestion, please HeLp
Thx
Darin