Minggu, 24 Januari 2016

[MS_AccessPros] Re: Report footers

 

Bill and Duane  ...


Thanks for your solutions.
Bill - I had already tried trying to use the if function, but would get a total of all sizes. I believe it somehow would need a where clause.
Duane - Your solution by creating a new table for the size groups and not having to go back to the table design works great!
QUESTION: If only one of the 2 sizes (2.5 and 3.0) is made within the report time period, is there any way to suppress the SizeGroup footer. A minor annoyance.

Thanks again for your help
Patty


---In MS_Access_Professionals@yahoogroups.com, <duanehookom@...> wrote :

Patty,

I typically handle these type of designs with data. Consider creating a new table of size groups with records like:

tblSizeGroups
SizeGroup    Size    ShowGroup
2.5-3.0            2.5    True
2.5-3.0            3.0     True
4.0                  4.0      False

Add this table to your report's record source and join on the size fields. In your report, group first by SizeGroup and then by Size. Add code to cancel the On Format event for ShowGroup = False.

As your  Management asks for different groupings, just edit the data in your table. Don't ever go to your report design.

Duane Hookom, MVP
MS Access


MS_Access_Professionals@yahoogroups.com
From: no_reply@yahoogroups.com
Date: Fri, 22 Jan 2016 12:07:18 -0800
Subject: [MS_AccessPros] Report footers



Hello All:


Report question
We make a product in three sizes - 2.5", 3.0" and 4.0"
There is a report for yield analysis that has a ProductSize header, a detail section, a ProductSize Footer and a Report Footer
The ProductSize header shows the [ProductSize]
The Detail section shows detail data for all withing the size - ie: DateMade, ProductSequence, WeightIn, WeightShipped etc.
ProductSize footer: shows a summary for Product Size - ie: Total WeightIn: (Sum([WeightIn]), Total WeightShipped: (Sum([WeightShipped]), Yield: Sum([WeightShipped])/Sum([WeightIn])
Report Footer: shows a summary for all Product Sizes
Everything works as expected, listing all ProductSequence data within a size, then the summary for that size, then the next size, next summary, next size, next summary, and summaries for all sizes in the report footer.
PROBLEM:  
Management wants to continue showing data for each size as we have now but wants another summary after the 3.0" summary that shows the combined summary for ProductSize = 2.50 and ProductSize = 3.00.
Is this possible? 


TIA,

Patty





__._,_.___
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (4)

.

__,_._,___

Tidak ada komentar:

Posting Komentar