Connecting Tech Pros Worldwide Help | Site Map

Summing a specific groups

John
Guest
 
Posts: n/a
#1: Nov 12 '05
Hi

I want to get the sum of records based on a specific record filter (field
value), in addition to the report total which is the sum of all records. Is
there a way to do that in a report?

Thanks

Regards



Mike Storr
Guest
 
Posts: n/a
#2: Nov 12 '05

re: Summing a specific groups


Use the Sum() function as a textbox ControlSource on the report.

Mike Storr
www.veraccess.com


"John" <John@nospam.infovis.co.uk> wrote in message
news:404b4e35$0$10152$cc9e4d1f@news.dial.pipex.com ...[color=blue]
> Hi
>
> I want to get the sum of records based on a specific record filter (field
> value), in addition to the report total which is the sum of all records.[/color]
Is[color=blue]
> there a way to do that in a report?
>
> Thanks
>
> Regards
>
>
>[/color]


John
Guest
 
Posts: n/a
#3: Nov 12 '05

re: Summing a specific groups


Does sum support some sort of condition I can use to get only records that
meet a certain field value?

Thanks

Regards


"Mike Storr" <storrboy@sympatico.ca> wrote in message
news:T0K2c.2202$j05.36616@news20.bellglobal.com...[color=blue]
> Use the Sum() function as a textbox ControlSource on the report.
>
> Mike Storr
> www.veraccess.com
>
>
> "John" <John@nospam.infovis.co.uk> wrote in message
> news:404b4e35$0$10152$cc9e4d1f@news.dial.pipex.com ...[color=green]
> > Hi
> >
> > I want to get the sum of records based on a specific record filter[/color][/color]
(field[color=blue][color=green]
> > value), in addition to the report total which is the sum of all records.[/color]
> Is[color=green]
> > there a way to do that in a report?
> >
> > Thanks
> >
> > Regards
> >
> >
> >[/color]
>
>[/color]


Larry Linson
Guest
 
Posts: n/a
#4: Nov 12 '05

re: Summing a specific groups


If you use it in a Group Footer, it will automatically limit the Sum to the
values that apply to that Group. You will, of course, have to use the
Report's Sorting and Grouping to set up the Groups.

An alternative would be to use the DSum domain aggregate function if it
isn't feasible to set up Groups, or embed Subreports based on a Totals
Query.

Larry Linson
Microsoft Access MVP

"John" <John@nospam.infovis.co.uk> wrote in message
news:404b9933$0$10141$cc9e4d1f@news.dial.pipex.com ...[color=blue]
> Does sum support some sort of condition I can use to get only records that
> meet a certain field value?
>
> Thanks
>
> Regards
>
>
> "Mike Storr" <storrboy@sympatico.ca> wrote in message
> news:T0K2c.2202$j05.36616@news20.bellglobal.com...[color=green]
> > Use the Sum() function as a textbox ControlSource on the report.
> >
> > Mike Storr
> > www.veraccess.com
> >
> >
> > "John" <John@nospam.infovis.co.uk> wrote in message
> > news:404b4e35$0$10152$cc9e4d1f@news.dial.pipex.com ...[color=darkred]
> > > Hi
> > >
> > > I want to get the sum of records based on a specific record filter[/color][/color]
> (field[color=green][color=darkred]
> > > value), in addition to the report total which is the sum of all[/color][/color][/color]
records.[color=blue][color=green]
> > Is[color=darkred]
> > > there a way to do that in a report?
> > >
> > > Thanks
> > >
> > > Regards
> > >
> > >
> > >[/color]
> >
> >[/color]
>
>[/color]


Closed Thread


Similar Microsoft Access / VBA bytes