Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." 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 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 8th, 2004, 03:03 AM
Authorized User
 
Join Date: Aug 2004
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Prabhakar_dt
Default plese solve error 0x80020009

Hi to all of u....

<%
    dim rs,rs1
        set rs=server.CreateObject ("adodb.recordset")
        set rs1=server.CreateObject ("adodb.recordset")
       rs.Open "select *from QQ1to75",con,adOpenForwardOnly,adLockOptimistic,ad cmdtxt
        rs1.Open "select *from answer",con,adOpenForwardOnly,adLockOptimistic,adc mdtxt
                dim counter
                        counter=0
                        punter=0
                        while not rs.EOF
                        if rs("Q_id")=rs1("Q_id") then
                           if rs("answer")=rs1("answer") then
                              counter=counter+1
                           else
                              punter=punter+1
                           end if
                       end if
                       rs1.MoveNext
                       rs.MoveNext
                       wend
                       session("count")=counter
                       session("punt")=punter
                       rs.Close
                       rs1.Close
              session("count")=counter
              session("punt")=punter
                       set rs=nothing
                       set rs1=nothing
                       dim rs3
                       set rs3=server.CreateObject("adodb.recordset")
                       rs3.Open "delete * from answer",con


                       %>
 Number of right Answers - <%=session("count")%>
 Number of wrong Answers - <%=session("punt")%>

When i run this project first time it shows correct answer, but when i click on the refresh button it shows error...[/size=6]

Error Type:
(0x80020009)
Exception occurred.
/ver9/report2.asp, line 104


thanks

Prabhakar


Prabhakar Kumar
__________________
Prabhakar Kumar
 
Old September 8th, 2004, 04:37 AM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 363
Thanks: 0
Thanked 1 Time in 1 Post
Default

hello,

  You have same no of records in the questions table and answers table? You can write a combined query for questions and answers and you can check easily.

What exactly the line no 104 where the error occured.








Similar Threads
Thread Thread Starter Forum Replies Last Post
How to solve this error? ramk_1978 Classic ASP Components 1 June 27th, 2006 02:51 AM
Can anyone help me to solve this error vikaspa VB How-To 1 October 5th, 2005 04:43 AM
friends help me plese! bad.for.good ASP.NET 1.0 and 1.1 Basics 1 May 18th, 2005 11:49 AM
sole the error 0x80020009 Prabhakar_dt Classic ASP Basics 3 September 10th, 2004 10:26 AM
Error that I could not solve sajjad27 VS.NET 2002/2003 0 August 17th, 2003 11:40 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.