D
Dwight
Ok, here is what I am trying to accomplish. I have a MS
Access application that is shared at 2 locations on 2
different networks. The Application consists of 3
databases; 1 for the FE; 1 for the BE and for the
Startup. The user runs that Startup MDB, which copies the
FE to their PC and then opens the application. When I
make modifications to the FE, I put the new version in the
shared folder where it is copied during the startup
process. Right now everytime the user runs the startup it
copies the FE over even if there has not been any
modifications.
How do I keep the copying from happening if there has not
been any changes?
Here is code in the Startup:
Private Sub Form_Timer()
strPrograms = Command() & "ARGOMS.mdb"
FileCopy strPrograms, "C:\ARGOMS\ARGOMS.mdb"
strPrograms = Command() & "ARGOMS5.ico"
FileCopy strPrograms, "C:\ARGOMS\ARGOMS5.ico"
DoCmd.Quit acQuitSaveAll
End If
End Sub
Private Sub Form_Unload(Cancel As Integer)
RetVal = Shell("C:\Program Files\Microsoft
Office\Office\MSACCESS.EXE
C:\ARGOMS\ARGOMS.MDB /nostartup /cmd i:\cmd-daar-
go\argoms\", 1)
End Sub
Thanks in advance!
Dwight
Access application that is shared at 2 locations on 2
different networks. The Application consists of 3
databases; 1 for the FE; 1 for the BE and for the
Startup. The user runs that Startup MDB, which copies the
FE to their PC and then opens the application. When I
make modifications to the FE, I put the new version in the
shared folder where it is copied during the startup
process. Right now everytime the user runs the startup it
copies the FE over even if there has not been any
modifications.
How do I keep the copying from happening if there has not
been any changes?
Here is code in the Startup:
Private Sub Form_Timer()
strPrograms = Command() & "ARGOMS.mdb"
FileCopy strPrograms, "C:\ARGOMS\ARGOMS.mdb"
strPrograms = Command() & "ARGOMS5.ico"
FileCopy strPrograms, "C:\ARGOMS\ARGOMS5.ico"
DoCmd.Quit acQuitSaveAll
End If
End Sub
Private Sub Form_Unload(Cancel As Integer)
RetVal = Shell("C:\Program Files\Microsoft
Office\Office\MSACCESS.EXE
C:\ARGOMS\ARGOMS.MDB /nostartup /cmd i:\cmd-daar-
go\argoms\", 1)
End Sub
Thanks in advance!
Dwight