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 TouchToneTommy 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'... Arguments in conflict? 2

Status
Not open for further replies.

fsteeman

Programmer
Jul 17, 2002
103
DK
Hello all,

Could anyone help me I am stuck with this very annoying problem, whereas I am doing everything by the book!

When I access my asp-page I get 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.

/evolution/default1.asp, line 49


This is my original code:

dim db, rs, rsegm, strConn, sql

Set db = Server.CreateObject ("ADODB.Connection")
DBP = "f:\ strConn = "Driver={Microsoft Access Driver (*.mdb)}; DBQ=" & DBP

db.ConnectionTimeout = 30
db.CommandTimeout = 80
db.open strconn

set rsegm = Server.CreateObject ("ADODB.Recordset")
rsegm.Open "SELECT * FROM segments", db, adOpenForwardOnly, adLockOptimistic


As a test I also copied a similar procedure from a tutorial and tried that: same result...

I also tried the page on a totally different server: no difference...

Could someone please tell me what is wrong?!

Cheers,

Fedor
 
Hi Fedor

Can you post the SQL string please

Thanks



Glen
Conception | Execution
 
all so i would recommend adding the

Code:
<%Option Explicit%>

that should help trap any errors and point you too a reason

thanks


Glen
Conception | Execution
 
where is line 49? Where is the rest of your code?


Tony
reddot.gif WIDTH=500 HEIGHT=2 VSPACE=3

 
Dear all,

The problem was that I did not include the adovbs file. I never realized it was that necessary (believed that the server readily could understand what adOpenKeySet is) until now. Well, so you learn... Thanks for all the tips!

Cheers,

Fedor
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top