Results 1 to 4 of 4

Thread: ADO login Help

  1. #1

    Thread Starter
    Member
    Join Date
    Oct 1999
    Location
    Montreal
    Posts
    59

    Post

    Hello i am have a error when i log on to Access ?
    Public db As Connection
    Public RS As Recordset
    ......

    Set db = New ADODB.Connection
    db.Provider = "microsoft.jet.oledb.3.51"
    db.Open GetSetting("Carnet", "Controls", "MDBPath"), "ADMIN", "123"
    Set RS = New ADODB.Recordset
    RS.Open "tabel1", objADOCN, , , adCmdTable

  2. #2
    Addicted Member
    Join Date
    Feb 2000
    Posts
    224
    I think that should be

    db.Provider = "microsoft.jet.oledb.3.51;UID=ADMIN;Pwd=123;"

    I am Not sure of this..
    If you can't pronounce my name, call me GURU

  3. #3
    Member
    Join Date
    Aug 2000
    Posts
    60
    What error are you getting, are you using a database password or Access Users & Groups?
    Barend
    JHB-SA

    Nothing is impossible, except skiing through a revolving door.

  4. #4

    Thread Starter
    Member
    Join Date
    Oct 1999
    Location
    Montreal
    Posts
    59
    WEll this is the connection with DAO :
    Set Db = DBEngine.Workspaces(0).OpenDatabase(GetSetting("Carnet", "Controls", "MDBPath"), False, False, "MS Access;PWD=123")
    Set Rs = Db.OpenRecordset("Phone", dbOpenDynaset)
    and work's perfectly what would it be in ADO?

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