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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recordset Error

Status
Not open for further replies.

Sensibilium

Programmer
Apr 6, 2000
310
GB
I'm trying to delete a record from my DB but I keep receiving the following error message:

[tt]ADODB.Recordset error '800a0bb9'

Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.

/delcategoryresponse.asp, line 23 [/tt]


Below is my Delete Category Page (with line 23 in bold):

[tt]<%@ Language=VBScript %>
<HTML>
<!-- include file=&quot;ADOvbs.inc&quot; -->
<HEAD>
<TITLE>Delete Category Action</TITLE>
<META name=&quot;description&quot; content=&quot;&quot;>
<META name=&quot;keywords&quot; content=&quot;&quot;>
</HEAD>
<BODY BGCOLOR=&quot;#FFFFFF&quot; TEXT=&quot;#000000&quot; LINK=&quot;#0000FF&quot; VLINK=&quot;#800080&quot;>
<h1>Delete Category Action</h1>
<%
Dim vConfirm
vConfirm = Request.Form(&quot;Confirm&quot;)
If vConfirm=&quot;no&quot; Then
Response.Redirect &quot;delcategory.asp&quot;
End If

Dim vCatID
vCatID = Request.Form(&quot;CatID&quot;)

Dim oRSCategory
Set oRSCategory=Server.CreateObject(&quot;ADODB.Recordset&quot;)
oRSCategory.Open &quot;tblCategories&quot;, &quot;DSN=fairweb; UID=whoever; PWD=xxxxxx&quot;,adOpenDynamic,adLockOptimistic
oRSCategory.Find &quot;CategoryID=&quot; & vCatID
If oRSCategory.EOF Then
Response.Write &quot;It should be impossible, but this category don't exist!&quot;
Else
oRSCategory.Delete adAffectCurrent
Response.Write &quot;Category deleted.&quot;
End If

oRSCategory.Close
Set oRSCategory = Nothing
%>
</BODY>
</HTML>[/tt]

Can anyone shed any light on this? [sig]<p>ahdkaw<br><a href=mailto:ahdkaw@ots.zzn.com>ahdkaw@ots.zzn.com</a><br><a href= anythign can go wrong, it will'[/sig]
 
Well, if anything, if you are using a Jet based DSN the cursor type adOpenDynamic doesn't combine with the lock type adLockOptimistic.

There are also some Q articles on this error...



There are a lot more. Search for the error number at



[sig]<p>Rob<br><a href=mailto:robschultz@yahoo.com>robschultz@yahoo.com</a><br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
"Focus on the solution to the problem,<br>
not the obstacles in the way."<br>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~[/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top