?
Solved

Error Type:(0x80020009)Exception occurred.

Posted on 2003-12-06
3
Medium Priority
?
6,341 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 1000 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 1000 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: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying 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

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…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
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 …
Suggested Courses

764 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