A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Sum In Report Footer



 
 
Thread Tools Display Modes
  #1  
Old July 21st, 2007, 06:20 PM posted to microsoft.public.access.reports
DS
external usenet poster
 
Posts: 285
Default Sum In Report Footer

I have this in a Report Group Header
its an unbound field

=DCount("PartyStatus","tblPartyPlannerDetails","Pa rtyStatus=1 AND
PartyNameID = Reports!rptFXEventStats!PartyNameID")

How do I get the Sum of this in a Report Footer?

I tried Sum([TxtStatus1])

I tried =DCount("PartyStatus","tblPartyPlannerDetails","Pa rtyStatus=1")

I also tried
Sum(=DCount("PartyStatus","tblPartyPlannerDetails" ,"PartyStatus=1"))

Nothing seemed to add up the values.

Thanks
DS
  #2  
Old July 21st, 2007, 07:06 PM posted to microsoft.public.access.reports
Marshall Barton
external usenet poster
 
Posts: 5,361
Default Sum In Report Footer

DS wrote:

I have this in a Report Group Header
its an unbound field

=DCount("PartyStatus","tblPartyPlannerDetails","P artyStatus=1 AND
PartyNameID = Reports!rptFXEventStats!PartyNameID")

How do I get the Sum of this in a Report Footer?



Add a hidden text box (named txtRunSum) to the header
section, next to the DCount text box. Set its control
source expression to =thedcounttextbox and its RunningSUm
property to Over All.

Then the report footer text box an display the total by
using the expression =txtRunSum

--
Marsh
MVP [MS Access]
  #3  
Old July 21st, 2007, 08:42 PM posted to microsoft.public.access.reports
DS
external usenet poster
 
Posts: 285
Default Sum In Report Footer

Marshall Barton wrote:
DS wrote:


I have this in a Report Group Header
its an unbound field

=DCount("PartyStatus","tblPartyPlannerDetails"," PartyStatus=1 AND
PartyNameID = Reports!rptFXEventStats!PartyNameID")

How do I get the Sum of this in a Report Footer?




Add a hidden text box (named txtRunSum) to the header
section, next to the DCount text box. Set its control
source expression to =thedcounttextbox and its RunningSUm
property to Over All.

Then the report footer text box an display the total by
using the expression =txtRunSum

Thanks Marsh, That works I also dug this up from something that you did
earlier...

=Sum(IIf([PartyStatus]=1,1,0))

DS
  #4  
Old July 21st, 2007, 10:35 PM posted to microsoft.public.access.reports
Marshall Barton
external usenet poster
 
Posts: 5,361
Default Sum In Report Footer

DS wrote:

Marshall Barton wrote:
DS wrote:

I have this in a Report Group Header
its an unbound field

=DCount("PartyStatus","tblPartyPlannerDetails", "PartyStatus=1 AND
PartyNameID = Reports!rptFXEventStats!PartyNameID")

How do I get the Sum of this in a Report Footer?



Add a hidden text box (named txtRunSum) to the header
section, next to the DCount text box. Set its control
source expression to =thedcounttextbox and its RunningSUm
property to Over All.

Then the report footer text box an display the total by
using the expression =txtRunSum

Thanks Marsh, That works I also dug this up from something that you did
earlier...

=Sum(IIf([PartyStatus]=1,1,0))



That would be preferable if you are grouping on the
PartyNameID field.

--
Marsh
MVP [MS Access]
 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 08:30 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.