Connecting Tech Pros Worldwide Help | Site Map

Summing a specific groups

 
LinkBack Thread Tools Search this Thread
  #1  
Old November 12th, 2005, 08:26 PM
John
Guest
 
Posts: n/a
Default Summing a specific groups

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




  #2  
Old November 12th, 2005, 08:26 PM
Mike Storr
Guest
 
Posts: n/a
Default 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]


  #3  
Old November 12th, 2005, 08:26 PM
John
Guest
 
Posts: n/a
Default 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]


  #4  
Old November 12th, 2005, 08:26 PM
Larry Linson
Guest
 
Posts: n/a
Default 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]


 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,662 network members.