Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ADODB.Recordset error '800a0bb9'

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I'm having a problem connecting to my database, as I keep getting the following error: ADODB.Recordset error '800a0bb9' The application is using arguments that are of the wrong type, are out of acceptable range, or are in conflict with one another.
The offending line of code is the line contained in this segment, ``rsFieldEntry.Filter = "FieldTestID = " & Request("FieldTestID")``


Dim rsFieldEntry
Dim blnNew
Set rsFieldEntry=Server.CreateObject("ADODB.Recordset")
rsFieldEntry.Open "FieldTest",objConn, adOpenForwardOnly, adLockOptimistic, adCmdTable
If Request.Form(&quot;Delete&quot;) <> &quot; &quot; Then 'user wishes to delete an item
rsFieldEntry.Filter = &quot;FieldTestID = &quot; &amp; Request(&quot;FieldTestID&quot;)
If Not rsFieldEntry.EOF Then rsFieldEntry.Delete

My table name is FieldTest and the record in the db is FieldTestID
Thanks for any answers.
 
Not sure what the datatype of your db field is, but if it is not numeric, you need to surround your variable with single quotes. Try this.
Try rsFieldEntry.Filter = &quot;FieldTestID = '&quot; &amp; Request(&quot;FieldTestID&quot;) &amp; &quot;'&quot;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top