Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to check if a file already exists 1

Status
Not open for further replies.

SkyHigh

Technical User
May 30, 2002
309
CA
I am trying the following routines in one of my functions and I get runtime error 424 :

If Not Object.FileExists(CurrentProject.path & "\Archives\Reports " & ccmonth & ".mdb") Then
fs.copyfile CurrentProject.path & "\" & CurrentProject.name, CurrentProject.path & "\Archives\Reports " & ccmonth & ".mdb"
End If


Thanks for your help !!
Brenda
 
Try to replace this:
If Not Object.FileExists(
By this:
If Not fs.FileExists(

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Great PHV, your help is much appreciated.
Have a star !!
Brenda
 
You may also find this helpful... faq707-4116

I did.

jimlee
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top