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  

Summing in Footer



 
 
Thread Tools Display Modes
  #1  
Old May 7th, 2007, 10:11 PM posted to microsoft.public.access.reports
David
external usenet poster
 
Posts: 1,494
Default Summing in Footer

Hello,

I have the following Footers and Fields, which I need to sum on. I saw a
OVER GROUP comment made in other posts, but that does not seem to work:

WEEK FOOTER:

Field: txtSumHrs:
=IIf(Sum([HoursWork])40,40,Format(Sum([HoursWork]),"Standard"))
Field: txtSumHrs1: =txtSumHrs (Running Sum Over Group)

NAME FOOTER:

Field: =txt72: ([txtSumHrs1]) - This is my problem. It does not sum across
2 or more weeks, rather, just gives me the last week data.

What am I missing?
--
David
  #2  
Old May 8th, 2007, 04:33 AM posted to microsoft.public.access.reports
Duane Hookom
external usenet poster
 
Posts: 7,177
Default Summing in Footer

I don't think you have a good understanding. First, don't format values that
you want to do math with. Use the format property to set display formats.

I expect what you refer to as "Fields" are actually controls. Try set the
control txtSumHrs1 to:
Control Source: =IIf(Sum([HoursWork])40,40,Sum([HoursWork]))
Running Sum: Over Group

Then set the text box in the [Name] footer:
Control Source: =txtSumHrs1


--
Duane Hookom
Microsoft Access MVP


"David" wrote:

Hello,

I have the following Footers and Fields, which I need to sum on. I saw a
OVER GROUP comment made in other posts, but that does not seem to work:

WEEK FOOTER:

Field: txtSumHrs:
=IIf(Sum([HoursWork])40,40,Format(Sum([HoursWork]),"Standard"))
Field: txtSumHrs1: =txtSumHrs (Running Sum Over Group)

NAME FOOTER:

Field: =txt72: ([txtSumHrs1]) - This is my problem. It does not sum across
2 or more weeks, rather, just gives me the last week data.

What am I missing?
--
David

  #3  
Old May 8th, 2007, 04:55 PM posted to microsoft.public.access.reports
David
external usenet poster
 
Posts: 1,494
Default Summing in Footer

That worked well. Thanks.
--
David


"Duane Hookom" wrote:

I don't think you have a good understanding. First, don't format values that
you want to do math with. Use the format property to set display formats.

I expect what you refer to as "Fields" are actually controls. Try set the
control txtSumHrs1 to:
Control Source: =IIf(Sum([HoursWork])40,40,Sum([HoursWork]))
Running Sum: Over Group

Then set the text box in the [Name] footer:
Control Source: =txtSumHrs1


--
Duane Hookom
Microsoft Access MVP


"David" wrote:

Hello,

I have the following Footers and Fields, which I need to sum on. I saw a
OVER GROUP comment made in other posts, but that does not seem to work:

WEEK FOOTER:

Field: txtSumHrs:
=IIf(Sum([HoursWork])40,40,Format(Sum([HoursWork]),"Standard"))
Field: txtSumHrs1: =txtSumHrs (Running Sum Over Group)

NAME FOOTER:

Field: =txt72: ([txtSumHrs1]) - This is my problem. It does not sum across
2 or more weeks, rather, just gives me the last week data.

What am I missing?
--
David

 




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:47 AM.


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