Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms Programming / September 2007

Tip: Looking for answers? Try searching our database.

Bad File Name

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
DS - 11 Sep 2007 23:21 GMT
I'm getting the Error #52, Bad File Name or Number.

FileCopy "C:\PROSERV\DB\Restore.mdb",
"C:\PROSERV\BU\Format(Date,""yyyymmdd"") & "".mdb"

The file defintely exisits.  Could it be the format part thats not right.
Thanks
DS
Marshall Barton - 11 Sep 2007 23:54 GMT
>I'm getting the Error #52, Bad File Name or Number.
>
>FileCopy "C:\PROSERV\DB\Restore.mdb",
>"C:\PROSERV\BU\Format(Date,""yyyymmdd"") & "".mdb"

Hard to tell without knowing what file name you are looking
for.

Is this the same question as your next one?

Signature

Marsh
MVP [MS Access]

Ken Snell (MVP) - 12 Sep 2007 00:47 GMT
FileCopy "C:\PROSERV\DB\Restore.mdb",
"C:\PROSERV\BU\" & Format(Date,"yyyymmdd") & ".mdb"

Signature

       Ken Snell
<MS ACCESS MVP>

> I'm getting the Error #52, Bad File Name or Number.
>
[quoted text clipped - 4 lines]
> Thanks
> DS
DS - 12 Sep 2007 12:43 GMT
> FileCopy "C:\PROSERV\DB\Restore.mdb",
> "C:\PROSERV\BU\" & Format(Date,"yyyymmdd") & ".mdb"

Thanks Ken.
I see the error of my ways...  " &
DS
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.