473,796 Members | 2,565 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

arguements of wrong type??

Here's my project info first...

DB: Access 2000
server: IIS 2003

Here is the error I'm getting...

ADODB.Recordset error '800a0bb9'

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

/admin/website_specs_s tep1_process.as p, line 166

Here is where the error is occuring...

Dim rsClient, ClientSQL
Set rsClient = Server.CreateOb ject("ADODB.Rec ordset")
ClientSQL = "SELECT * FROM tbl_clients WHERE fld_client_Emai l=" &
Request.Form("E mail") & ";"
rsClient.Open ClientSQL, objConn 'LINE 166

I usually get this error when I forget to reference the ado type
library dll with this...

<!-- METADATA TYPE="typelib" file="c:\Progra m Files\Common
Files\System\ad o\msado15.dll" -->

These are the steps I have take to no avail...
1). I have double checked with the server administrator to verify the
dll is actually where it is supposed to be.

2). I have checked and rechecked to be sure I am referencing my
connection file correctly (e.g. the "objConn")

3). I have checked to be certain the DB table and fields are correct.

4). I have tried replacing the ado constants with literals (if I refer
to these correctly). I specified all the options instead of allowing
the defaults to kick in as well (e.g. connection, cursor, locktype,
option) and still no difference.

I don't know what else to do at this point. Any suggestions?

Thank you!!!

John

Sep 3 '05 #1
8 1472
the other john wrote:
Here's my project info first...

DB: Access 2000
server: IIS 2003

Here is the error I'm getting...

ADODB.Recordset error '800a0bb9'

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

/admin/website_specs_s tep1_process.as p, line 166

Here is where the error is occuring...

Dim rsClient, ClientSQL
Set rsClient = Server.CreateOb ject("ADODB.Rec ordset")
ClientSQL = "SELECT * FROM tbl_clients WHERE fld_client_Emai l=" &
Request.Form("E mail") & ";"
rsClient.Open ClientSQL, objConn 'LINE 166

I don't see where objConn was initialized and opened ...

ADO is not recognizing objConn as a connection object or a connection string
(bad idea to use a connection string here)

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Sep 3 '05 #2
I'm referencing a connection file as an include. I do it exactly the
same way on the same server for other apps and it works so I'm at a
loss here.

'ADO is not recognizing objConn as a connection object or a connection
string
'(bad idea to use a connection string here)
Could you elaborate on this? I suspect my method is not a good way to
do this. If so I have to say I am so "frustrated "! I learn primarily
from books and they tell me to do things like this but when I talk to
experienced programmers on newsgroups and else where I find out this is
not the case. Arg! Not your fault certainly, just venting.

Sep 3 '05 #3
the other john wrote:
I'm referencing a connection file as an include.
"connection file"?
I'm not sure what you are talking about there.
I do it exactly the
same way on the same server for other apps and it works so I'm at a
loss here.
Whatever. i don't have access to your include file so I don't know what is
in it.

Does objConn point at a connection object? Is it open?
Or does it contain a connection string?

'ADO is not recognizing objConn as a connection object or a connection
string
'(bad idea to use a connection string here)
Could you elaborate on this? I suspect my method is not a good way to
do this. If so I have to say I am so "frustrated "! I learn primarily
from books and they tell me to do things like this but when I talk to
experienced programmers on newsgroups and else where I find out this
is not the case. Arg! Not your fault certainly, just venting.


I can't comment on the method you are using because I don't know what it is.
If your include file looks like this:

<%
dim objConn
set objConn=createo bject("adodb.co nnection")
objConn.Open "<valid connection string>"
%>

Then your method is fine. If instead, it contains:

<%
dim objConn
objConn="<valid connection string>"
%>

Then it is not fine.

It is a bad idea not to use an explicit, open connection object because
failure to do so can prevent connection pooling from working See:
http://msdn.microsoft.com/library/en...l/pooling2.asp
http://support.microsoft.com/?scid=kb;en-us;Q176056
http://support.microsoft.com/default...b;en-us;191572
http://support.microsoft.com/default...b;en-us;324686

connection failures caused by pooling disablement
http://support.microsoft.com/default...b;en-us;328476

implicit connections:
http://support.microsoft.com/?kbid=271128
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Sep 3 '05 #4
This is the include file that references my connection string at the
top of every page that connects to the database...
<!--# include virtual="/xxxxxxxxxxxxxxx xx.asp"-->

This is what is inside the file referenced above...
<%
Dim objConn
Set objConn = Server.CreateOb ject("ADODB.Con nection")
objConn.Open "Provider=Micro soft.Jet.OLEDB. 4.0; " & _
"Data Source=E:\xxxxx xxxxxxxxxxxxxxx x.mdb"
%>

I still have to read everything you sent as it will take a long time to
read it all so if there is anything more you can add or this is adds
clarity I'm providing it now.

Sep 3 '05 #5
ok, from what I can see I am using an explicit connection so is there
something else I am not seeing?

Sep 3 '05 #6
the other john wrote:
ok, from what I can see I am using an explicit connection so is there
something else I am not seeing?


I don't see anything. I still think it's the objConn variable. There aren't
any other arguments in that line except the sql statement string.
What do you get when you do:

response.write typename(objcon n)

or this:

response.write objconn.state

Bob Barrows
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Sep 3 '05 #7
what the.....????! it produces "empty"!! this is jacked, the same
object works with another app...I'll post back after I play with it
some more..

thanks Bob

Sep 3 '05 #8
ok, I just KNEW this was going to turn out to be something dumb ;-/

this works....
<!--#include virtual="/xxxxxxxxxxxxx.a sp"-->

this doesn't...
<!--# include virtual="/xxxxxxxxxxxx.as p"-->

a space between the pound sign and "include". one dumb little space,
wow. well, thankfully, problem solved.

thanks again!

Sep 4 '05 #9

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

Similar topics

9
1754
by: Ook | last post by:
I need a function that swaps arguements. This is my function. It works, after calling swapArgs aa now has 321, and bb has 123. My question - did I do it right? Just because it works doesn't mean I didn't make some fundamental mistake somewhere. void swapArgs( int &parm1, int &parm2 ); void swapArgs( int &parm1, int &parm2 ) { int zoot;
3
1755
by: junk | last post by:
Hi, Given the following function:- void foo (char *fmt, ...) { } I know how to use va_start, va_end etc to process the parameters but is there an easy way of passing the parameter list onto another function that also has variable length arguements.
8
1871
by: Dawn Minnis | last post by:
Hey guys If I have a program (see codeSnippet1) that I compile to be called test.o Then run it as test.o n n 2 3 4 I want the code to be able to strip out the two characters at the start (always going to be 2) and store them as characters. But I can't seem to get it to work because it is a pointer to a vector of characters. However, if I only run with integer arguements and use codeSnippet2 it works fine and they convert nicely to...
2
3792
by: Balamurukan | last post by:
I have one Interface has one Method namely Showlookup which has one Ref arguement Like (ref object ctrl) I want to pass this as ref Arguement when i call the method. I tried ShowLookup(ref this); It shows an error Like u can not pass this as ref or out parameter Because it is readonly.
0
336
by: JeffM | last post by:
If you've seen this before, sorry for the repost, the last post had no replies- and I'm still stuck. Can anyone suggest a way to use a comma delimited text file to supply arguements to a method call. Any ideas or sample code much appreciated. I am a tester learning C# so no amount of detail is too basic for me. Thanks in advance, Jeff
12
2689
by: Andrew Bullock | last post by:
Hi, I have two classes, A and B, B takes an A as an argument in its constructor: A a1 = new A(); B b = new B(a1);
4
1316
by: Panos Laganakos | last post by:
I want a class method to take action depending on the type of the arguement passed to it. ie: getBook(id) # get the book by ID getBook(name) # get the book by name .... Other languages use the term function/method overloading to cope with this. And when I googled about it seems that GvR is testing it for 3.0
5
1749
by: bg_ie | last post by:
Hi, I'd like to write a function like printf, which takes a string as its first arguement, but then a variable number of arguements after this, based on the contents of the first arguement. How do I do this? Barry.
2
1823
by: Nike | last post by:
I have a small question w.r.t usage of default arguements in template.. I shall try to elaborate this with an example.. let's say I have some template function , where EntryType is the input for the template fn 1.. and another type where EntryType and lass P1 are both inputs.. case1 (1)template<class EntryType_> i.e void A<EntryType_>::createObject(EntryType::inputIdType inpId_ )..
0
9685
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
10459
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10237
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
10187
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
10018
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5578
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4120
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
2
3735
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2928
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.