Backup Database Access using VB code

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • xpcer
    New Member
    • Jul 2006
    • 51

    Backup Database Access using VB code

    i wanna to backup an access database using vb.

    if my database without password i can use

    Filecopy "database.mdb", "D:\myback. mdb"

    but if my database with password, it can't work, and the message is
    Permission Denied

    can anyone help me,
    thanks
  • Hemant Pathak
    Recognized Expert New Member
    • Jul 2006
    • 92

    #2
    u try again to write this code
    it is possible to if databse is password protected then u can not change database name. so u use this code
    Filecopy "database.mdb", "D:\Backup\data base.mdb"

    Comment

    • xpcer
      New Member
      • Jul 2006
      • 51

      #3
      thanks for helping me.... :) i will try this

      Comment

      Working...