samuelsisgay
Programmer
I'm still having trouble with that block of code...thanx for the syntax problem. I keep getting an error with the call rst1.Open line. I've opened the record
ERROR:The operation requested by the application is not allowed if the object is open.
I have accessed another table within the database within the form using the call procedure and openconnection.
This may be why it is reading as already open...
Anyway, the code is below...
MsgBox "record user results"
Call rst1.Open("SELECT * FROM results where username ='" & okUsername & "' and password ='" & okPassword & "'", cnn, adOpenKeyset, adLockOptimistic)
With rst1
.Fields("Trial1Correct".Value = txtCorrect.Text
.Fields("NoQuestions1".Value = txtTotal.Text
.Update
End With
Thanks
ERROR:The operation requested by the application is not allowed if the object is open.
I have accessed another table within the database within the form using the call procedure and openconnection.
This may be why it is reading as already open...
Anyway, the code is below...
MsgBox "record user results"
Call rst1.Open("SELECT * FROM results where username ='" & okUsername & "' and password ='" & okPassword & "'", cnn, adOpenKeyset, adLockOptimistic)
With rst1
.Fields("Trial1Correct".Value = txtCorrect.Text
.Fields("NoQuestions1".Value = txtTotal.Text
.Update
End With
Thanks