I keep on getting the following error when i use filecopy;
Runtime error '76';
Path not Found
Here is the code that i am trying;
Private Sub cmdOK_Click()
Dim sfile_dir As String
dim sfile_name as string
sfile_dir = "C:\temp\catimp\"
sfile_name = "G:\wes\file.exp"
If (Dir(sfile_dir & "catimp"
) = "catimp" Then
sfile_check = True
Else
MkDir sfile_dir
End If
intMsg = MsgBox(sfile_name)
FileCopy sfile_name, sfile_dir
End Sub
Please help
Jon
Runtime error '76';
Path not Found
Here is the code that i am trying;
Private Sub cmdOK_Click()
Dim sfile_dir As String
dim sfile_name as string
sfile_dir = "C:\temp\catimp\"
sfile_name = "G:\wes\file.exp"
If (Dir(sfile_dir & "catimp"
sfile_check = True
Else
MkDir sfile_dir
End If
intMsg = MsgBox(sfile_name)
FileCopy sfile_name, sfile_dir
End Sub
Please help
Jon