Solved

Error Type:(0x80020009)Exception occurred.

Posted on 2003-12-06
3
6,336 Views
Last Modified: 2011-09-20
Hi,

Got this error in this if statement.  any ideas?  thanks

if((oRs_Dashboard_Red_Flag_180.Fields("Type")="180") AND not(oRs_Dashboard_Red_Flag_180.eof))then
      Response.Write "OK"
else
      Response.Write "NOT"
end if
0
Comment
Question by:mcrmg
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 21

Assisted Solution

by:ap_sajith
ap_sajith earned 250 total points
ID: 9888435
MEMO / TEXT / VARCHAR(>255)
 
Depending on the version of your MDAC driver, and the database you are connecting to, these columns can either (a) not show up at all, (b) only show up the first time they're called, or (c) cause 'Unspecified Error', 'Exception Occured' or 'Errors Occurred' runtime errors, if the following recommendations are not observed:

-Avoid SELECT * notation; NAME your columns in a list, and name the offending column(s) LAST.
-Assign the value of the column to a variable IMMEDIATELY, and only use this variable from that point on.
-Make sure your MDAC drivers are most current (Microsoft downloads).
-See http://support.microsoft.com/?kbid=200124 and http://support.microsoft.com/?kbid=175239

Cheers!!
0
 
LVL 21

Accepted Solution

by:
ap_sajith earned 250 total points
ID: 9888449
BTW.. your If statement should be..

if not oRs_Dashboard_Red_Flag_180.eof then
If oRs_Dashboard_Red_Flag_180.Fields("Type")="180"
    Response.Write "OK"
End If
else
    Response.Write "NOT"
end if

>> oRs_Dashboard_Red_Flag_180.eof <<
Always check if the RS is emty before retrieving the values or you would get the either eof or bof is true error..

Are you returning any BLOB field data or NTEXT data?
Cheers!!

0
 

Author Comment

by:mcrmg
ID: 9888482
working now...thanks....
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

729 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question