Solved

Error Type:(0x80020009)Exception occurred.

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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Index on a Table 6 31
key press alert 2 42
Can't select treeview node from iframe 2 38
Help with Classic ASP - Parameterizing Query 16 24
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…
Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

733 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