+ Reply to Thread
Results 1 to 2 of 2

Excel export to password protected Access DB

  1. #1
    Registered User
    Join Date
    05-04-2011
    Location
    San Antonio, TX
    MS-Off Ver
    Excel 2007
    Posts
    35

    Excel export to password protected Access DB

    I have the following code in the Excel VBA, however, database is password protected and I cannot export to database. Any ideas how to bypass the password?

    Dim db As DAO.Database, rs As DAO.Recordset, r As Long

    Set db = OpenDatabase("R:\XXX\MDB.mdb")
    ' open the database

    Thanks.

  2. #2
    Registered User
    Join Date
    05-04-2011
    Location
    San Antonio, TX
    MS-Off Ver
    Excel 2007
    Posts
    35

    Re: Excel export to password protected Access DB

    Set db = OpenDatabase("R:\XXX\MDB.mdb", False, False, ";PWD=password")

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1