S
Song Su
Following code will copy cisCdrive.mdb if C:\Program Files\elac\cis folder
exists.
If C:\Program Files\elac\cis folder does not exist, FileCopy will generate
Run-Time error '76' - Path not found.
I want the code to check if cisCdrive.mdb is available. If not, make
elac\cis folder under c:\program files and copy cisCdrive.mdb into that
folder. Thanks
Private Sub Form_Load()
Dim SourceFile As String
SourceFile = "C:\Program Files\elac\cis\cisCdrive.mdb"
If Len(Dir(SourceFile)) = 0 Then
FileCopy "S:\Apps\cisLive\data\cisCdrive.mdb", SourceFile
End If
Me.RecordSource = "qryMyLabel" 'Add RecordSource to the form
End Sub
exists.
If C:\Program Files\elac\cis folder does not exist, FileCopy will generate
Run-Time error '76' - Path not found.
I want the code to check if cisCdrive.mdb is available. If not, make
elac\cis folder under c:\program files and copy cisCdrive.mdb into that
folder. Thanks
Private Sub Form_Load()
Dim SourceFile As String
SourceFile = "C:\Program Files\elac\cis\cisCdrive.mdb"
If Len(Dir(SourceFile)) = 0 Then
FileCopy "S:\Apps\cisLive\data\cisCdrive.mdb", SourceFile
End If
Me.RecordSource = "qryMyLabel" 'Add RecordSource to the form
End Sub