Solved

Error Type:(0x80020009)Exception occurred.

Posted on 2003-12-06
3
6,311 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
  • 2
3 Comments
 
LVL 21

Assisted Solution

by:ap_sajith
ap_sajith earned 250 total points
Comment Utility
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
Comment Utility
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
Comment Utility
working now...thanks....
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

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…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

728 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now