CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> Archive -> CodeCharge.Discussion

 Totaling a column of numbers

Print topic Send  topic

Author Message
Randy Lane
Posted: 05/06/2002, 8:28 PM

Hello all,

I am trying to set up a site for my company to keep track of billable hours
to clients and maybe more in the future.
My question is how can I easily total a column of numbers (Hours) after
selecting a date range (The last week..month..whatever) and a client and a
consultant.
I'm using CodeCharge 2.0, SQL Server and IIS outputting to ASP

Randy

Alexey Alexapolsky
Posted: 05/07/2002, 5:32 AM

In Open event of grid form that displays your result ,
obtain sql statement from sSQL variable and replace it's
field list (string data between SELECT and FROM) with COUNT(*)
Save this new sql statement to some global variable.

This count sql will be used in the next form that diplays totals.
The latter form should have
sSQL = global_sql
in Form/Open event.

--
Alex
CodeCharge Developer


"Randy Lane" <randy@crystalimagesoftware.com> wrote in message
news:ab7hks$26v$1@news.codecharge.com...
> Hello all,
>
> I am trying to set up a site for my company to keep track of billable
hours
> to clients and maybe more in the future.
> My question is how can I easily total a column of numbers (Hours) after
> selecting a date range (The last week..month..whatever) and a client and a
> consultant.
> I'm using CodeCharge 2.0, SQL Server and IIS outputting to ASP
>
> Randy
>
>


   


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

Web Database

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.