CodeCharge Studio
search Register Login  

Web Reports

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

YesSoftware Forums -> CodeCharge Studio -> ASP

 SUM

Print topic Send  topic

Author Message
miller

Posts: 5
Posted: 03/08/2004, 11:58 AM

I am using ASP 3.0 with Templates-MS Access 2002

I need to get the TOTAL of a field in search results, I have no clue and I have tried the Count Sheep example and everything but no luck.

Project Name: CarrierLookup
Grid Name: WebprosQuery
Field Name: PROAmount
Connection: Connection1
CCS: 2.2

I need to total up the PROAmount field.

Any help would be very much appreciated

Joo
_________________
Joe Miller
Simpleton
View profile  Send private message
DonB
Posted: 03/08/2004, 12:51 PM

Put a SQL statement in your datasource

SELECT groupbycolumn, SUM(PROAmount) from sometable
GROUP BY groupbycolumn

Assuming you want to see several rows, with totals for each 'groupbycolumn"
(whatever the name might be)

--
DonB

http://www.gotodon.com/ccbth


"miller" <miller@forum.codecharge> wrote in message
news:6404cd07e7438d@news.codecharge.com...
> I am using ASP 3.0 with Templates-MS Access 2002
>
> I need to get the TOTAL of a field in search results, I have no clue and I
have tried the Count Sheep example and everything but no luck.
>
> Project Name: CarrierLookup
> Grid Name: WebprosQuery
> Field Name: PROAmount
> Connection: Connection1
> CCS: 2.2
>
> I need to total up the PROAmount field.
>
> Any help would be very much appreciated
>
> Joo
> _________________
> Joe Miller
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>


Add new topic Subscribe to topic   


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.