Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old October 30th, 2003, 08:58 PM
Authorized User
 
Join Date: Oct 2003
Location: , , .
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default I'm stuck!

Ok, so I keep getting this error message:
Code:
Microsoft VBScript runtime error '800a01a8'

Object required: 'True'

/pandadot/esubmit.asp, line 8
Can someone tell me what I am doing wrong?

Code:
<html>
<title>Thanks for joining our mailing list!</title>
<head>
</head>
<%
        Dim objConn
        set objConn = DSN=DSN_pandadot
        Dim rsusers
         Set rsusers = Server.CreateObject("ADODB.Recordset")        rsusers.Open "pandainfo", objConn
                rsusers("Email") = Request.Form("emailfield")rsusers.Update
Response.write("Your e-mail address has been added to our mailing list.")
%>
<center>
<body>
</body>
</center>
</html>

Sorry about the formatting of the code, but you get the idea.

Reply With Quote
  #2 (permalink)  
Old October 30th, 2003, 11:19 PM
Friend of Wrox
 
Join Date: Oct 2003
Location: colombo, WP, Sri Lanka.
Posts: 481
Thanks: 0
Thanked 3 Times in 3 Posts
Send a message via MSN to surendran Send a message via Yahoo to surendran
Default

try this code
<%
str="dsn=DSN_pandadot;uid="";pwd="";"
dim con,rsusers
set con=server.CreateObject("adodb.connection")
set rsusers=server.CreateObject("adodb.recordset")
con.open str
sql="select * from pandainfo"
rsusers.open sql,con,1,3

rsusers.addnew
            r(0).value=Request.Form("emailfield")
rsusers.update
        Response.write("Your e-mail address has been added to our mailing list.")
rsusers.close
%>

surendran
Reply With Quote
  #3 (permalink)  
Old November 2nd, 2003, 11:52 PM
Authorized User
 
Join Date: Oct 2003
Location: , , .
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default

That worked really well. Thanks!!

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Stuck on the first chapter flashster BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 4 September 1st, 2006 03:40 AM
I am deucedly stuck here rbalagr Beginning VB 6 2 July 6th, 2006 07:19 AM
Help - I'm Completely Stuck hugh@kmcnetwork.com ASP.NET 1.x and 2.0 Application Design 1 May 16th, 2006 10:12 AM
Help!! I am completely stuck... andrewba Classic ASP Components 5 May 12th, 2005 04:50 AM
stuck on a field reindeerw Access 0 August 3rd, 2004 10:41 AM



All times are GMT -4. The time now is 06:54 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.