CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 Listing categories with record count [ie ASP (16)]

Print topic Send  topic

Author Message
cornettt
Posted: 10/29/2002, 10:03 AM

How would list categories and display how many records are in that category. Similar to the Script Archives and download sites.

Example:

ASP (16)
Java (29)
Visual Basic (12)


I am using CSS, ASP w/Templates, VBScript.

Thanks.
Nicole
Posted: 10/30/2002, 7:16 AM

Hello,
Create form Before Show Row event and calculate the number of items in each category. E.g.:
form_name.field_name.Value = CCDLookUp("table_name", "count(*)", "category_id=" & form_name.category_id.Value, DBconnection_name)

Note that category_id field should exist on the form. Do not forget to replace "form_name", "field_name", "connection_name", etc. with real names.
imranz
Posted: 10/30/2002, 10:22 AM


There are two types of record counting examples in the Counting Sheep article. The second part of the article handles your type of question.

http://www.gotocode.com/art.asp?art_id=230&

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.