If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Arguments are of the wrong type???

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-02-06, 09:18
Quetzal Quetzal is offline
Registered User
 
Join Date: Feb 2006
Posts: 51
Arguments are of the wrong type???

Hello

I am getting the following error message:

ADODB.Recordset error '800a0bb9'

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

/faq/inc_search_form.asp, line 6

The error message refers to this asp file:

<!--#include file="Connections/connDUfaq.asp" -->


<%
set rsCount = Server.CreateObject("ADODB.Recordset")
rsCount.ActiveConnection = MM_connDUfaq_STRING
rsCount.Source = "SELECT (SELECT COUNT(*) FROM FAQS) AS FAQ_COUNT, COUNT(*) AS TYPE_COUNT FROM TYPES"
rsCount.CursorType = 0
rsCount.CursorLocation = 2
rsCount.LockType = 3
rsCount.Open()
rsCount_numRows = 0
%>

so this line, seems to be the culprit:

rsCount.ActiveConnection = MM_connDUfaq_STRING


My connection string (which was not the original connection string in this customised script), is:

<%

Set MyConn = Server.CreateObject("ADODB.Connection")

MyConn.Open "Driver={Microsoft Access Driver (*.mdb)};" & _
"Dbq=D:\business\abc.com\private\DUfaq.mdb;"

%>

I would be grateful for any advice.

Many thanks.

Quetzal.
Reply With Quote
  #2 (permalink)  
Old 02-07-06, 19:40
Bullschmidt Bullschmidt is offline
Guru
 
Join Date: Jun 2003
Location: USA
Posts: 1,032
That message usually means that there is something wrong in the SQL statement:

rsCount.Source = "SELECT (SELECT COUNT(*) FROM FAQS) AS FAQ_COUNT, COUNT(*) AS TYPE_COUNT FROM TYPES"

And for a related article:

http://www.aspfaq.com/search.asp?q=800a0bb9&x=11&y=10:
__________________
J. Paul Schmidt, Freelance Web and Database Developer
www.Bullschmidt.com
Access Database Sample, Web Database Sample, ASP Design Tips

Last edited by Bullschmidt; 02-07-06 at 19:48.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On