Results 1 to 3 of 3

Thread: Connection String vs Password [RESOLVED]

  1. #1

    Thread Starter
    Addicted Member g-mie's Avatar
    Join Date
    Jan 2004
    Location
    EarTh
    Posts
    212

    Connection String vs Password [RESOLVED]

    Hi guys

    Below is my current connection string code

    VB Code:
    1. Set db = New ADODB.Connection
    2.     db.CursorLocation = adUseClient
    3.     db.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\SPCPD_DATA\SPCPD.mdb;Persist Security Info=False"

    I cannot access into database (MS-Acces) after I set password. The error msg are "Run-time error '2147217843 (80040ed)': Not a valid password."

    What should I do? Need your advice guys.

    TQ
    Last edited by g-mie; Apr 3rd, 2005 at 09:32 PM.

  2. #2
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Connection String vs Password

    Try this:

    VB Code:
    1. db.Open ="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\somepath\mydb.mdb;Jet OLEDB:Database Password=MyDbPassword;"

    Hope it helps!

    from
    http://www.connectionstrings.com/
    Last edited by dglienna; Apr 3rd, 2005 at 09:27 PM.

  3. #3

    Thread Starter
    Addicted Member g-mie's Avatar
    Join Date
    Jan 2004
    Location
    EarTh
    Posts
    212

    Re: Connection String vs Password

    dglienna
    Thank you. It's worked. Thanks again.

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