Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - ASP troubleshooting
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

ASP troubleshooting

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

Joined: 06 May 2003
Location: United States
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote masson Quote  Post ReplyReply Direct Link To This Post Topic: ASP troubleshooting
    Posted: 06 May 2003 at 3:23pm

I'm new to ASP and planning on writing a real program but I've started using the tutorial on using ASP with Access Database. The program is simple, it just lists records in a database

But I get the error:

Microsoft VBScript runtime error '800a01a8'
Object required: ''
/test/guestbook.asp, line 28

The code on line 28 looks like:

rsGuestbook.Open strSQL, adoCon

The preceeding lines are:

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

adoCon.Open "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath("guestbook.mdb")

strSQL = "SELECT tblComments.Name, tblComments.Comments FROM tblComments;"

I've tried looking up this error on technet and can't find anything. Any help would be great. Thanks!

Back to Top
ultramods View Drop Down
Groupie
Groupie
Avatar

Joined: 08 January 2003
Location: Scotland
Status: Offline
Points: 146
Post Options Post Options   Thanks (0) Thanks(0)   Quote ultramods Quote  Post ReplyReply Direct Link To This Post Posted: 06 May 2003 at 7:03pm

For every connection you need to create a objects to hold the connection and the recordset info.

Set rsGuestbook = Server.CreateObject("ADODB.Recordset")

Back to Top
masson View Drop Down
Newbie
Newbie
Avatar

Joined: 06 May 2003
Location: United States
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote masson Quote  Post ReplyReply Direct Link To This Post Posted: 07 May 2003 at 7:02am
Thanks...Actually the line you listed was there, but I just couldn't see it. Must have been staring at the CRT way too long.
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.