Home | Advertising Info84 USERS CURRENTLY ONLINE   
   Site Search Contact Us Thursday, October 27, 2016  

User Management Application with web based screens that allow you to manage users.
Banner Rotation system. Advertisers can monitor online statistical reports via their web browsers.
ASP Photo Gallery
Upload an unlimited amount of albums. Set up categories.Image resizing thumbnail creation.
Classifieds system. Set up categories. Users can register themselves. Supports picture uploads.

Try a free httpZip trial now and compress for less!

We didn't realize
the site was so popular.

Other Stuff

vbscript active server pages ASP vbscript SQL database informix oracle SQL Server Perl CGI Delphi PHP source code code sample samples program CJWSoft ASPProtect ASPBanner ASPClassifieds

(Advanced)  (Components)  (Database)  (General)  (Vbscript)


Subject: Re: Access 97 and ASP
From: Harlan
Date: 2/2/1999 9:16:30 AM


Here is what I usually do. I put my recordset
evaluations in a function

dim DB
dim errNoneFound, errUnknown
errNoneFound = "No records found matching your search."
errUnknown = "An unknown error occured, please
contact the system administrator."

private function rsFunction(sSQL)
I wont write DBOpen() here, but its
just a sub that opens the database.
Set rsRecordset = DB.Execute(sSQL)

eof and bof return true when you are at
the "end of file" and the "beginning of file"
at the same time.. meaning no records returned.
If rsRecordset.EOF And rsRecordset.BOF Then
rsFunction = errNoneFound
Exit Function
in order to use .count make sure you use a
non-forward only curser

count is equal to -1 when the recordset itself
didnt return, meaning you have an error.
If rsRecordset.count = -1 Then
rsFunction = errUnknown

Do While Not rsRecordset.EOF
strTemp = strTemp & rsRecordset("SomeColumn")
rsFunction = strTemp
End If

hope that made things clearer..

Previous Message


   Active Server Pages Rule The World
Contact Us  
All artwork, design & content contained in this site are Copyright 1998 - 2016 PowerASP.com and Christopher J. Williams
Banner ads ,other site logos, etc are copyright of their respective companies.
STATS Unless otherwise noted - All Rights Reserved.

Active Server Pages asp source code database MS SQL MS Access .mdb adovbs.inc cookies calendar codes sql commands scripts asp programming tutorials iis web server components CJWSoft ASPProtect ASPBanner ASPClassifieds www.aspclassifieds.com, www.powerasp.com,www.cjwsoft.com,www.aspphotogallery.com,www.codewanker.com,www.aspprotect.com,www.aspbanner.com