|
-
Feb 5th, 2000, 02:10 PM
#1
Thread Starter
PowerPoster
-
Feb 5th, 2000, 05:39 PM
#2
When you specify UseClient Side Cursor Location, you're telling it to use a different set of Drivers, which it can't find or don't work, remove that line and you should be fine, ie.
Code:
Private Sub Command1_Click()
Dim adoUserLog As New ADODB.Recordset
Dim db As New ADODB.Connection
db.Open "Provider=Microsoft.Jet.OLEDB.3.51;Persist Security Info=False;Data Source=C:\Driving.mdb;"
adoUserLog.Open "SELECT * FROM [User Log];", db, adOpenStatic, adLockOptimistic
With adoUserLog
.AddNew
.Fields("UserID").Value = CurrentUserID
.Fields("Description").Value = Activity
.Fields("LogDate").Value = Format(Date, "dd/MM/yyyy")
.Fields("LogTime").Value = Format(Time, "hh:nn:ss")
.Update
End With
End Sub
------------------
Aaron Young
Analyst Programmer
[email protected]
[email protected]
-
Feb 6th, 2000, 06:16 AM
#3
Thread Starter
PowerPoster
Would you believe I've been tearing my hair out over 1 line!!! It was in every example of ADO though... 
Anyway, thanks Aaron. Now I can sleep.
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
|