If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > help with error checking PLEASE

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-19-02, 00:02
gormly gormly is offline
Registered User
 
Join Date: Oct 2002
Posts: 7
Question help with error checking PLEASE

*********************************
this problem is solved.. I figured it out, I had a recordset before my error code
***********************************************

NO NEED TO REPLY


I Hate to be a pain in the butt and re-post this question (or plee for help really) but I *really* need some help with this.

I spent 56 bucks on two books and still couldn't come up with the answer.

Its simple..

I access a dbf batabase via JScript. I use Dreamweaver and do not really do any hand coding except for tweaking. When I say Jscript, I mean I selected Jscript as my dynamic page in Dreamweaver and then choose to insert a data access page via the plugins (it is NOT coded by hand)

I am accessing a database via a select-where statement and if the where variable doesnt have records attached to it, my page comes up as an http error page and not my page with a "No Data" If it has data, the pages work GREAT.. but I need the error handling.

I need the page to come up as is, with the Text "No Records Found" in place of the data that would have come up..
(I dont need an error page)

Sounds simple no???
Not for me.

The code I am using is posted at:

www.promaster.com/scripts/problem.html


I was told to use:

************
if(!rs.EOF)
{
// Do something....
while(!rs.EOF)
{
Response.Write(rs("FIELDNAME-OR-INDEX").Value);
rs.MoveNext();
}
}
else Response.Write("No records found");
*************

But it doesn't work for me.

The reason I post the code is so someone can understand what I am doing... and remember I am a novice big time..

Thanks SO much.

Last edited by gormly; 10-20-02 at 19:46.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On