Results 1 to 4 of 4

Thread: How to open an Access Password protected database through ADO's

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Mar 2000
    Location
    India, Visakhapatnam
    Posts
    19
    I want to know how to open an Access password protected database through ADO's

    Thank You.

    Dinesh
    reply to
    <[email protected]>

  2. #2
    Junior Member SysAdmin2's Avatar
    Join Date
    Mar 2000
    Location
    Plainfield, IL, USA
    Posts
    26

    Example

    Set cnADO = New ADODB.Connection

    cnADO.Provider = "Microsoft.Jet.OLEDB.3.51"
    cnADO.Properties("Jet OLEDB:Database Password") = "PASSWORD"
    cnADO.Properties("Data Source") = "C:\Example.mdb"

    cnADO.Open

  3. #3
    Fanatic Member
    Join Date
    Aug 2000
    Posts
    617

    ...

    That will work if he/she has the password...

  4. #4

    Thread Starter
    Junior Member
    Join Date
    Mar 2000
    Location
    India, Visakhapatnam
    Posts
    19
    Thanks for the reply.
    I found that on the Microsoft's Knowledge Base. But i got an error when i gave it as part of a property just as in the example, but worked fine when i gave it in the connection string.
    Dinesh
    reply to
    <[email protected]>

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