The following code gives me "Permission Denied" error at the FileCopy statement. Any idea what I'm doing wrong? Any help is appreciated! Maggie
Function gfbackupdatabase() As Boolean
On Error GoTo Err_Backup
'Use this to create a copy of the blank original database
Dim Sourcefile, Destinationfile
Sourcefile = "C:\Documents and Settings\user\My documents\gandee\Gandee071707_BE.mdb"
Destinationfile = "C:\Documents and Settings\user\My documents\gandee\COPY1_BE.mdb"
FileCopy Sourcefile, Destinationfile
Exit_Backup:
Exit Function
Err_Backup:
MsgBox Error$
Resume Exit_Backup
End Function
Function gfbackupdatabase() As Boolean
On Error GoTo Err_Backup
'Use this to create a copy of the blank original database
Dim Sourcefile, Destinationfile
Sourcefile = "C:\Documents and Settings\user\My documents\gandee\Gandee071707_BE.mdb"
Destinationfile = "C:\Documents and Settings\user\My documents\gandee\COPY1_BE.mdb"
FileCopy Sourcefile, Destinationfile
Exit_Backup:
Exit Function
Err_Backup:
MsgBox Error$
Resume Exit_Backup
End Function