Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

"0" value doesn't give error?

Status
Not open for further replies.
May 9, 2000
446
GB
I have a popup asp window that gives the amount of records a particular user has in an acces database. However when the recordset returns no records the page shows an error message, is there an onerror event like the one in acces that i can use to show a diferent page or piece of text???

Cheers

Gary
 
you can use a try/catch block...the catch block is only executed if try code has an error (jscript only):

try
{
some code
}
catch(exception)
{
more code
} jared@aauser.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top