Hi all you experts!
I have an Access system running in a client's location.
As part of an upgrade a few year ago, I have separated the front end to a few mdb files, Put them all in One netework directory, and added to the name of the main file a".2" suffix.
So the main file path is: "P:\MyNetworkDirectory\MyFileName.2.mdb
In order to have updated FEs on the users machine, there is a small app thet copies the above files to the local machine, and opens it:
I Send to copyAndOpenMdbFile() "MyFileName.2.mdb", the file is copied, and the copy is opened.
Now I have upgraded again, and have changed the file's name to "MyFileName.3.mdb" in the same directory. 'FileCopy' Returns Error "File not found"
could someone tell me what am I doing wrong?:banghead:
I have an Access system running in a client's location.
As part of an upgrade a few year ago, I have separated the front end to a few mdb files, Put them all in One netework directory, and added to the name of the main file a".2" suffix.
So the main file path is: "P:\MyNetworkDirectory\MyFileName.2.mdb
In order to have updated FEs on the users machine, there is a small app thet copies the above files to the local machine, and opens it:
Code:
Private Sub copyAndOpenMdbFile(FileName As String)
On Error GoTo Err_copyAndOpenMdbFile
FileCopy "P:\MyNetworkDirectory\" & FileName, "C:\Temp\" & FileName
dOpenFile.OpenFile "C:\Temp\" & FileName
Exit_copyAndOpenMdbFile:
Exit Sub
Err_copyAndOpenMdbFile:
MsgBox Err.Description
Resume Exit_copyAndOpenMdbFile
End Sub
I Send to copyAndOpenMdbFile() "MyFileName.2.mdb", the file is copied, and the copy is opened.
Now I have upgraded again, and have changed the file's name to "MyFileName.3.mdb" in the same directory. 'FileCopy' Returns Error "File not found"
could someone tell me what am I doing wrong?:banghead: