I have a field called Attribute2. My report is grouped by Area (top level), then Type_of_Work (2nd level). Depending on the Area name, the usage of this field in the database differs. Here's an excerpt of my data pulled from the query:
WO# Type_of_Work Value Area
0600684 DR-SLTD Y DRAINAGE
0601765 DR-SLTD Y DRAINAGE
0601768 DR-SLTD Y DRAINAGE
0601860 DR-SLTD N DRAINAGE
0601865 DR-SLTD Y DRAINAGE
0500150 *8"PCRP 6 STREETS
0500221 *8"PCRP 5 STREETS
I need a calcs placed the Type of Work footer and Area footer to do three things:
If Area = Drainage, Count number of Y and Count number of N. -- Y = 4, N = 1
If Area <> Drainage, sum the values. -- total = 11
Last requirement, I want to suppress the field(s) if it's not relevant to the Area:
All Type_of_Work rows in Drainage Area will have 2 fields show up -- 1 for Y counts and 1 for N counts (suppress the SUM). Then non-Drainage Area groups would display only the SUM (suppress the COUNTS).
I hope I've been clear on this... thanks!!!
WO# Type_of_Work Value Area
0600684 DR-SLTD Y DRAINAGE
0601765 DR-SLTD Y DRAINAGE
0601768 DR-SLTD Y DRAINAGE
0601860 DR-SLTD N DRAINAGE
0601865 DR-SLTD Y DRAINAGE
0500150 *8"PCRP 6 STREETS
0500221 *8"PCRP 5 STREETS
I need a calcs placed the Type of Work footer and Area footer to do three things:
If Area = Drainage, Count number of Y and Count number of N. -- Y = 4, N = 1
If Area <> Drainage, sum the values. -- total = 11
Last requirement, I want to suppress the field(s) if it's not relevant to the Area:
All Type_of_Work rows in Drainage Area will have 2 fields show up -- 1 for Y counts and 1 for N counts (suppress the SUM). Then non-Drainage Area groups would display only the SUM (suppress the COUNTS).
I hope I've been clear on this... thanks!!!