473,915 Members | 5,904 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Arguments are of the wrong type

I'm getting the following error:

ADODB.Recordset error '800a0bb9'

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

/shop/results.asp, line 15

line 15 is the recordset open line. Can someone please help

if isnull(session( "whois")) then
response.Redire ct("../default.asp")
else
getCon=Applicat ion("connection Object")
set objshop=server. CreateObject("a dodb.recordset" )
dim categoryid
categoryid = request.queryst ring("cat")
objshop.open "select * from tblproducts where catkey = " & categoryid &"
order by catkey",getcon, 3,3
Jul 21 '05 #1
15 7229

<%
categoryid = request.queryst ring("cat")
RESPONSE.WRITE "select * from tblproducts where catkey = " & categoryid &"
order by catkey"
RESPONSE.END
%>

Load that. Does your query look right? If so, open up tool for running
queries against your database and try running it. You didn't indicated what
database type you're using, so if this is SQL, use Query Analyzer. Access,
the query editor window, etc.

Ray at work

"Erica" <Er***@discussi ons.microsoft.c om> wrote in message
news:34******** *************** ***********@mic rosoft.com...
I'm getting the following error:

ADODB.Recordset error '800a0bb9'

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

/shop/results.asp, line 15

line 15 is the recordset open line. Can someone please help

if isnull(session( "whois")) then
response.Redire ct("../default.asp")
else
getCon=Applicat ion("connection Object")
set objshop=server. CreateObject("a dodb.recordset" )
dim categoryid
categoryid = request.queryst ring("cat")
objshop.open "select * from tblproducts where catkey = " & categoryid &"
order by catkey",getcon, 3,3

Jul 21 '05 #2
The sql statement is correct. I am using Access database.

"Ray Costanzo [MVP]" wrote:

<%
categoryid = request.queryst ring("cat")
RESPONSE.WRITE "select * from tblproducts where catkey = " & categoryid &"
order by catkey"
RESPONSE.END
%>

Load that. Does your query look right? If so, open up tool for running
queries against your database and try running it. You didn't indicated what
database type you're using, so if this is SQL, use Query Analyzer. Access,
the query editor window, etc.

Ray at work

"Erica" <Er***@discussi ons.microsoft.c om> wrote in message
news:34******** *************** ***********@mic rosoft.com...
I'm getting the following error:

ADODB.Recordset error '800a0bb9'

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

/shop/results.asp, line 15

line 15 is the recordset open line. Can someone please help

if isnull(session( "whois")) then
response.Redire ct("../default.asp")
else
getCon=Applicat ion("connection Object")
set objshop=server. CreateObject("a dodb.recordset" )
dim categoryid
categoryid = request.queryst ring("cat")
objshop.open "select * from tblproducts where catkey = " & categoryid &"
order by catkey",getcon, 3,3


Jul 21 '05 #3
You verified that it is correct by copying and pasting that exact query and
running it in the Access query window?

Ray at home

"Erica" <Er***@discussi ons.microsoft.c om> wrote in message
news:9F******** *************** ***********@mic rosoft.com...
The sql statement is correct. I am using Access database.

"Ray Costanzo [MVP]" wrote:

<%
categoryid = request.queryst ring("cat")
RESPONSE.WRITE "select * from tblproducts where catkey = " & categoryid
&"
order by catkey"
RESPONSE.END
%>

Load that. Does your query look right? If so, open up tool for running
queries against your database and try running it. You didn't indicated
what
database type you're using, so if this is SQL, use Query Analyzer.
Access,
the query editor window, etc.

Ray at work

"Erica" <Er***@discussi ons.microsoft.c om> wrote in message
news:34******** *************** ***********@mic rosoft.com...
> I'm getting the following error:
>
> ADODB.Recordset error '800a0bb9'
>
> Arguments are of the wrong type, are out of acceptable range, or are in
> conflict with one another.
>
> /shop/results.asp, line 15
>
> line 15 is the recordset open line. Can someone please help
>
> if isnull(session( "whois")) then
> response.Redire ct("../default.asp")
> else
> getCon=Applicat ion("connection Object")
> set objshop=server. CreateObject("a dodb.recordset" )
> dim categoryid
> categoryid = request.queryst ring("cat")
> objshop.open "select * from tblproducts where catkey = " & categoryid
> &"
> order by catkey",getcon, 3,3


Jul 21 '05 #4
Yes, and the query worked perfect. Here is what I copied and pasted

select * from tblproducts where catkey = 1 order by catkey

"Ray Costanzo [MVP]" wrote:
You verified that it is correct by copying and pasting that exact query and
running it in the Access query window?

Ray at home

"Erica" <Er***@discussi ons.microsoft.c om> wrote in message
news:9F******** *************** ***********@mic rosoft.com...
The sql statement is correct. I am using Access database.

"Ray Costanzo [MVP]" wrote:

<%
categoryid = request.queryst ring("cat")
RESPONSE.WRITE "select * from tblproducts where catkey = " & categoryid
&"
order by catkey"
RESPONSE.END
%>

Load that. Does your query look right? If so, open up tool for running
queries against your database and try running it. You didn't indicated
what
database type you're using, so if this is SQL, use Query Analyzer.
Access,
the query editor window, etc.

Ray at work

"Erica" <Er***@discussi ons.microsoft.c om> wrote in message
news:34******** *************** ***********@mic rosoft.com...
> I'm getting the following error:
>
> ADODB.Recordset error '800a0bb9'
>
> Arguments are of the wrong type, are out of acceptable range, or are in
> conflict with one another.
>
> /shop/results.asp, line 15
>
> line 15 is the recordset open line. Can someone please help
>
> if isnull(session( "whois")) then
> response.Redire ct("../default.asp")
> else
> getCon=Applicat ion("connection Object")
> set objshop=server. CreateObject("a dodb.recordset" )
> dim categoryid
> categoryid = request.queryst ring("cat")
> objshop.open "select * from tblproducts where catkey = " & categoryid
> &"
> order by catkey",getcon, 3,3


Jul 21 '05 #5
Alright, what is "getcon" then? Can you post that function?

Ray at home

"Erica" <Er***@discussi ons.microsoft.c om> wrote in message
news:47******** *************** ***********@mic rosoft.com...
Yes, and the query worked perfect. Here is what I copied and pasted

select * from tblproducts where catkey = 1 order by catkey

"Ray Costanzo [MVP]" wrote:
You verified that it is correct by copying and pasting that exact query
and
running it in the Access query window?

Ray at home

"Erica" <Er***@discussi ons.microsoft.c om> wrote in message
news:9F******** *************** ***********@mic rosoft.com...
> The sql statement is correct. I am using Access database.
>
> "Ray Costanzo [MVP]" wrote:
>
>>
>> <%
>> categoryid = request.queryst ring("cat")
>> RESPONSE.WRITE "select * from tblproducts where catkey = " &
>> categoryid
>> &"
>> order by catkey"
>> RESPONSE.END
>> %>
>>
>> Load that. Does your query look right? If so, open up tool for
>> running
>> queries against your database and try running it. You didn't
>> indicated
>> what
>> database type you're using, so if this is SQL, use Query Analyzer.
>> Access,
>> the query editor window, etc.
>>
>> Ray at work
>>
>>
>>
>> "Erica" <Er***@discussi ons.microsoft.c om> wrote in message
>> news:34******** *************** ***********@mic rosoft.com...
>> > I'm getting the following error:
>> >
>> > ADODB.Recordset error '800a0bb9'
>> >
>> > Arguments are of the wrong type, are out of acceptable range, or are
>> > in
>> > conflict with one another.
>> >
>> > /shop/results.asp, line 15
>> >
>> > line 15 is the recordset open line. Can someone please help
>> >
>> > if isnull(session( "whois")) then
>> > response.Redire ct("../default.asp")
>> > else
>> > getCon=Applicat ion("connection Object")
>> > set objshop=server. CreateObject("a dodb.recordset" )
>> > dim categoryid
>> > categoryid = request.queryst ring("cat")
>> > objshop.open "select * from tblproducts where catkey = " &
>> > categoryid
>> > &"
>> > order by catkey",getcon, 3,3
>>
>>
>>


Jul 21 '05 #6
Ray,

First, thanks for your help. Second, 'getcon' is the connection object. The
strange thing is that this script worked fine and then all of sudden with no
warning it stopped working. I'm at a brick wall with this one. I've spent
almost 24 hours trying to figure this one ou t.

"Ray Costanzo [MVP]" wrote:
Alright, what is "getcon" then? Can you post that function?

Ray at home

"Erica" <Er***@discussi ons.microsoft.c om> wrote in message
news:47******** *************** ***********@mic rosoft.com...
Yes, and the query worked perfect. Here is what I copied and pasted

select * from tblproducts where catkey = 1 order by catkey

"Ray Costanzo [MVP]" wrote:
You verified that it is correct by copying and pasting that exact query
and
running it in the Access query window?

Ray at home

"Erica" <Er***@discussi ons.microsoft.c om> wrote in message
news:9F******** *************** ***********@mic rosoft.com...
> The sql statement is correct. I am using Access database.
>
> "Ray Costanzo [MVP]" wrote:
>
>>
>> <%
>> categoryid = request.queryst ring("cat")
>> RESPONSE.WRITE "select * from tblproducts where catkey = " &
>> categoryid
>> &"
>> order by catkey"
>> RESPONSE.END
>> %>
>>
>> Load that. Does your query look right? If so, open up tool for
>> running
>> queries against your database and try running it. You didn't
>> indicated
>> what
>> database type you're using, so if this is SQL, use Query Analyzer.
>> Access,
>> the query editor window, etc.
>>
>> Ray at work
>>
>>
>>
>> "Erica" <Er***@discussi ons.microsoft.c om> wrote in message
>> news:34******** *************** ***********@mic rosoft.com...
>> > I'm getting the following error:
>> >
>> > ADODB.Recordset error '800a0bb9'
>> >
>> > Arguments are of the wrong type, are out of acceptable range, or are
>> > in
>> > conflict with one another.
>> >
>> > /shop/results.asp, line 15
>> >
>> > line 15 is the recordset open line. Can someone please help
>> >
>> > if isnull(session( "whois")) then
>> > response.Redire ct("../default.asp")
>> > else
>> > getCon=Applicat ion("connection Object")
>> > set objshop=server. CreateObject("a dodb.recordset" )
>> > dim categoryid
>> > categoryid = request.queryst ring("cat")
>> > objshop.open "select * from tblproducts where catkey = " &
>> > categoryid
>> > &"
>> > order by catkey",getcon, 3,3
>>
>>
>>


Jul 21 '05 #7

"Erica" <Er***@discussi ons.microsoft.c om> wrote in message
news:34******** *************** ***********@mic rosoft.com...
objshop.open "select * from tblproducts where catkey = " & categoryid &"


I don't understand the final bit: ... categoryid & "

Why append a double quote? Surely that's neither needed nor correct, and
results in three double quotes in the line. Remove the final &"

Jul 21 '05 #8
your storing your connection object in an application variable? bad idea.

"Erica" <Er***@discussi ons.microsoft.c om> wrote in message
news:31******** *************** ***********@mic rosoft.com...
Ray,

First, thanks for your help. Second, 'getcon' is the connection object. The strange thing is that this script worked fine and then all of sudden with no warning it stopped working. I'm at a brick wall with this one. I've spent
almost 24 hours trying to figure this one ou t.

"Ray Costanzo [MVP]" wrote:
Alright, what is "getcon" then? Can you post that function?

Ray at home

"Erica" <Er***@discussi ons.microsoft.c om> wrote in message
news:47******** *************** ***********@mic rosoft.com...
Yes, and the query worked perfect. Here is what I copied and pasted

select * from tblproducts where catkey = 1 order by catkey

"Ray Costanzo [MVP]" wrote:

> You verified that it is correct by copying and pasting that exact query> and
> running it in the Access query window?
>
> Ray at home
>
> "Erica" <Er***@discussi ons.microsoft.c om> wrote in message
> news:9F******** *************** ***********@mic rosoft.com...
> > The sql statement is correct. I am using Access database.
> >
> > "Ray Costanzo [MVP]" wrote:
> >
> >>
> >> <%
> >> categoryid = request.queryst ring("cat")
> >> RESPONSE.WRITE "select * from tblproducts where catkey = " &
> >> categoryid
> >> &"
> >> order by catkey"
> >> RESPONSE.END
> >> %>
> >>
> >> Load that. Does your query look right? If so, open up tool for
> >> running
> >> queries against your database and try running it. You didn't
> >> indicated
> >> what
> >> database type you're using, so if this is SQL, use Query Analyzer.
> >> Access,
> >> the query editor window, etc.
> >>
> >> Ray at work
> >>
> >>
> >>
> >> "Erica" <Er***@discussi ons.microsoft.c om> wrote in message
> >> news:34******** *************** ***********@mic rosoft.com...
> >> > I'm getting the following error:
> >> >
> >> > ADODB.Recordset error '800a0bb9'
> >> >
> >> > Arguments are of the wrong type, are out of acceptable range, or are> >> > in
> >> > conflict with one another.
> >> >
> >> > /shop/results.asp, line 15
> >> >
> >> > line 15 is the recordset open line. Can someone please help
> >> >
> >> > if isnull(session( "whois")) then
> >> > response.Redire ct("../default.asp")
> >> > else
> >> > getCon=Applicat ion("connection Object")
> >> > set objshop=server. CreateObject("a dodb.recordset" )
> >> > dim categoryid
> >> > categoryid = request.queryst ring("cat")
> >> > objshop.open "select * from tblproducts where catkey = " &
> >> > categoryid
> >> > &"
> >> > order by catkey",getcon, 3,3
> >>
> >>
> >>
>
>
>


Jul 21 '05 #9
How did you deduce that her connection object is being stored in an app
variable? :]

Ray at work

"thorpe" <te**@tpg.com.a u> wrote in message
news:O7******** ******@TK2MSFTN GP12.phx.gbl...
your storing your connection object in an application variable? bad idea.

Jul 21 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
4651
by: J. Muenchbourg | last post by:
I'm getting an "Arguments are of the wrong type, out of acceptable range, in conflicts with each other " error , pointing to the sql statement in this block: Dim rstime Set rstime = Server.CreateObject("ADODB.Recordset") rstime.Open "SELECT * FROM TimestarResorts where resortname='" & request.querystring("resortname") & "' and roomsize='" & request.querystring("roomsize") & "'", dsn, 1, 3
7
50961
by: Tim Gaunt | last post by:
Hi, I'm hoping that someone will be able to help me with this one, I'm developing an application which basically inserts a load of data into the database ready for validation at a later date, I wrote an INSERT statement that works fine however today I decided that as part of the application upgrade it should be return the record ID so I wrote the following which I admit is a little messy at places but it works. However when I added all...
9
16861
by: Csaba Gabor | last post by:
Inside a function, I'd like to know the call stack. By this I mean that I'd like to know the function that called this one, that one's caller and so on. So I thought to do: <script type='text/javascript'> function myFunc(lev) { // if (lev) return myFunc(lev-1); var aStack=; nextFunc = arguments.callee;
12
4550
by: BartlebyScrivener | last post by:
I'm still new at this. I can't get this to work as a script. If I just manually insert the values for sys.argv and sys.argv it works fine, but I can't pass the variables from the command line. What am I doing wrong? On windows xp, python 2.4.3 Thank you import os import fnmatch import sys
4
1430
by: mantrid | last post by:
Hello Hope you can help. I have been using the code below to move elenents around the page. This has worked fine until I put some arguments into the functions so I could use them in many places with out having to create lots of slightly different functions. The code that has now stoped working is below. My javascript is not great and I have been struggling with this all day. Can anyone see where Ive gone wrong Thanks Ian
1
8045
by: Java Guy | last post by:
I'm trying to view a web page. IE tells me there are (Java?) errors on the page. Here they are: Line: 15 Char: 7 Error: Wrong number of arguments or invalid propert assignment Code: 0 URL: http://(address.of.my.webcam):port/LiveView.html and
7
3234
by: VK | last post by:
I was getting this effect N times but each time I was in rush to just make it work, and later I coudn't recall anymore what was the original state I was working around. This time I nailed the bastard so posting it before I forgot again... By taking this minimum code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> <html> <head>
12
7883
by: claudiu | last post by:
Hi, I'll go straight to the first question. Why does the code below compile? void f(int i = 0); int main() { (&f)();
12
12435
by: anantraoneel | last post by:
Hi Friend My project is a Library System. In Project is Book Master form. If I've select Book Type from Type Master and Publication from Publication Master then this error has come: "Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another. " but if I've put amount manually and save the record then record has been successfully saved. For selection of Book Type and Publication I've used Combo...
5
1587
by: subramanian100in | last post by:
I am copying the following text as it is from Stroustrup's TC++PL 3rd edition, page 450. It says: "Note that a constructor given two arguments of the same type can be a match for more than one constructor. For example, vector<intv(10, 50); // (size, value) or (iterator1, iterator2)?
0
10039
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9883
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10928
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
11069
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9734
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
8102
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7259
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4779
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3370
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.