|
-
Oct 4th, 2000, 11:28 AM
#1
Thread Starter
Member
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
-
Oct 5th, 2000, 06:15 AM
#2
Addicted Member
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 
-
Oct 5th, 2000, 06:59 AM
#3
Member
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.
-
Oct 5th, 2000, 04:44 PM
#4
Thread Starter
Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|