debbierich22
Programmer
I've an ASP beginner and I am having trouble handling recordsets.
Here's a generic sample of my code:
This is the error that I receive:
ADODB.Recordset (0x800A0CB3)
Object or provider is not capable of performing requested operation.
What is wrong?
Here's a generic sample of my code:
Code:
DBConnect = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & strDBPath & ";"
Set cnnSimple = Server.CreateObject("ADODB.Connection")
cnnSimple.Open DBConnect
Set objRecordset = Server.CreateObject("ADODB.Recordset")
objRecordset.Source = "User_Info"
objRecordset.ActiveConnection = DBConnect
objRecordset.CursorType = adOpenKeyset
objRecordset.Open
objRecordset.AddNew
objRecordset.Fields("FirstName") = fvar
objRecordset.Fields("LastName") = lvar
objRecordset.Fields("EMailAddress") = evar
objRecordset.Fields("UserName") = uvar
objRecordset.Fields("Password") = pvar
objRecordset.Update
objRecordset.Close
Set objRecordset = Nothing
This is the error that I receive:
ADODB.Recordset (0x800A0CB3)
Object or provider is not capable of performing requested operation.
What is wrong?