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

 Many pages, total records needed

Print topic Send  topic

Author Message
CDS
Posted: 09/30/2002, 5:26 PM

I'm using the "ShownRecords" (predefined) variable to show the total number of records shown on each page. However, I'd like to know the total number of records shown on all pages of the returned recordset.

Could someone show me the light on how to do this?

Thanks much!!!

Using ASP, CCS latest version...
imranz
Posted: 10/01/2002, 7:26 AM

Looks like what you want is to return a total number of records listed in a particular form, regardless of which page you are on in the paging of that form. Here is a solution for the ASP world.

Counting Records in a Form In CCStudio

1) Drop a Label field somewhere into your form's HTML from the Forms tab in the Toolbox. The easiest place is at the start of your form, right after the <!-- BEGIN Grid *yourform* --> section.

2) In the properties, name this new field something like 'Counting'
3) Set the Source Type as 'Code Expression'.
4) Nothing in Control Source
5) Data Type of Integer
6) Nothing in Format
7) Put the Default value as: yourform*.datasource.Recordset.RecordCount()

*REPLACE 'yourform' above with the name of the form for which you're counting the rcords.

That's it!


   


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.