Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Access - changing database password from an EXE

Access - changing database password from an EXE

Scheduled Pinned Locked Moved C / C++ / MFC
c++databasehelpquestionannouncement
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Kayembi
    wrote on last edited by
    #1

    Hi, I need to write a small program that backs up a Microsoft Access database in a specific way, and wondered if anybody here could offer me a little help. Basically, this is what the program needs to do: 1) Copy the original database (.mdb file) to a different folder (the backup folder). 2) Change the database password of the backed up version (the backup needs a different password). 3) Set the properties of the backed up password to "Read-only". 1) and 3) are easy, but 2) is giving me problems. At the moment I have to do this manually at the end of each day - by opening the copy using "Exclusive access", unsetting and then resetting the database password. Essentially I just want to write a program to automate this process and save me time at the end of each day. I am hoping that there is some way to automate step 2. If this is a really basic question, please accept my apologies. I have written a few basic C/C++ and WinAPI programs, but I have never interfaced with Access from another program. Many thanks for any help or pointers, KB

    D 1 Reply Last reply
    0
    • K Kayembi

      Hi, I need to write a small program that backs up a Microsoft Access database in a specific way, and wondered if anybody here could offer me a little help. Basically, this is what the program needs to do: 1) Copy the original database (.mdb file) to a different folder (the backup folder). 2) Change the database password of the backed up version (the backup needs a different password). 3) Set the properties of the backed up password to "Read-only". 1) and 3) are easy, but 2) is giving me problems. At the moment I have to do this manually at the end of each day - by opening the copy using "Exclusive access", unsetting and then resetting the database password. Essentially I just want to write a program to automate this process and save me time at the end of each day. I am hoping that there is some way to automate step 2. If this is a really basic question, please accept my apologies. I have written a few basic C/C++ and WinAPI programs, but I have never interfaced with Access from another program. Many thanks for any help or pointers, KB

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      You might try posing question #2 to the folks in the Access section at http://www.mvps.org/[^].


      A rich person is not the one who has the most, but the one that needs the least.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups