By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,594 Members | 2,016 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,594 IT Pros & Developers. It's quick & easy.

How To Copy Locked Access Database

P: 1

While I am trying to take back up,its giving error like permission access denied cz of .ldb ,Please tell me how can i copy locked access database......

Sateesh R Patil
Dec 14 '07 #1
Share this Question
Share on Google+
1 Reply

Expert 100+
P: 1,445

Add this Reference to your project :
Microsoft Scripting RunTime
and Check this code:

Expand|Select|Wrap|Line Numbers
  1.     Dim FSO As New FileSystemObject
  2.     FSO.CopyFile "C:\MyFolder\MyDB.mdb", "C:\BackUp\MyDb.mdb", True
  3.     MsgBox "Back Up Completed"
  4.     Set FSO = Nothing
3rd argument true will Overwrite existing db (if found)

Dec 14 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.