Results 1 to 3 of 3

Thread: Database Password Question

  1. #1

    Thread Starter
    Conquistador
    Join Date
    Dec 1999
    Location
    Australia
    Posts
    4,527
    with an access database, how do i open it if it has a password on it?

  2. #2
    Lively Member
    Join Date
    Jun 1999
    Location
    Brisbane, Qld, Australia
    Posts
    78
    Hi,
    this code may do the trick:

    Set pWorkspace = Workspaces(0)
    Set pDatabase = pWorkspace.OpenDataBase(App.path & "\" & pDatabasName, False, False, ";PWD=whatever")

    OpenDataBase = True

    Mike

  3. #3
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538
    da_silvy, again, this uses DAO, but...

    Dim DB as database 'need project menu > reference to ms DAO 3.5 library here
    Set DB = OpenDatabase("Path&Name_OF-DB_Here.mdb", False, False, ";Pwd=Password_here")

    Hope this helps!

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

Posting Permissions

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



Click Here to Expand Forum to Full Width