How To Copy Locked Access Database

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sateeshpatil
    New Member
    • Dec 2007
    • 1

    How To Copy Locked Access Database

    Hello.....

    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......

    Regards,
    Sateesh R Patil
  • QVeen72
    Recognized Expert Top Contributor
    • Oct 2006
    • 1445

    #2
    Hi,

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

    [code=vb]
    Dim FSO As New FileSystemObjec t
    FSO.CopyFile "C:\MyFolder\My DB.mdb", "C:\BackUp\MyDb .mdb", True
    MsgBox "Back Up Completed"
    Set FSO = Nothing
    [/code]

    3rd argument true will Overwrite existing db (if found)

    REgards
    Veena

    Comment

    Working...