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
Solved

Error Type:(0x80020009)Exception occurred.

Posted on 2003-12-06
3
6,323 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
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
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/…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

839 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