Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - 800A0BB9 error ?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

800A0BB9 error ?

 Post Reply Post Reply
Author
aspday1 View Drop Down
Newbie
Newbie
Avatar

Joined: 05 October 2003
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote aspday1 Quote  Post ReplyReply Direct Link To This Post Topic: 800A0BB9 error ?
    Posted: 05 October 2003 at 12:33am
I just followed the tutorial at
http://www.webwiz.net/asp/tutorials/connecting_to_a_dat abase_pt2.asp

but got an error message:
Error Type:
ADODB.Recordset (0x800A0BB9)
Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.
/guestbook.asp, line 22

Here is from line 1 to 22:
<html>
<head>
<title>My First ASP Page</title>
</head>
<body bgcolor="white" text="black">
<%
'Dimension variables
Dim adoCon        'Holds the Database Connection Object
Dim rsGuestbook   'Holds the recordset for the records in the database
Dim strSQL           'Holds the SQL query to query the database

'Create an ADO connection object
Set adoCon = Server.CreateObject("ADODB.Connection")

'Set an active connection to the Connection object using a DSN-less connection
'adoCon.Open "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath("guestbook.mdb")

'Create an ADO recordset object
Set rsGuestbook = Server.CreateObject("ADODB.Recordset")

'Open the recordset with the SQL query
rsGuestbook.Open strSQL, adoCon

Thanks!
Back to Top
fernan82 View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 17 November 2002
Location: United States
Status: Offline
Points: 362
Post Options Post Options   Thanks (0) Thanks(0)   Quote fernan82 Quote  Post ReplyReply Direct Link To This Post Posted: 05 October 2003 at 2:57am

It looks like you forgot to write your SQL query...

strSQL = "SELECT blah FROM whatever blah blah....

or whatever....

 



Edited by fernan82
FeRnAN
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.