Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

suppress issue with detail/group data

Status
Not open for further replies.

aspnetuser

Technical User
Sep 9, 2004
273
US
I need to suppress a text box in the group footer area based on IDs in the detail section.

details
ID
A
D
C
E

GROUP FOOTER
TEST BOX

The problem is, I need to suppress ONLY IF THEIR IS AN "A" in the details section.
I tried IN, LIKE, startwith, etc and they fail because it is not searching through the detail records, it is only looking at one value since we are in the group footer.

is their another formula to do this?
 
I think that theres possibly 2 ways of doing this, firstly you could try using a manual running total and only get it to count if the field = 'A' and then suppress depending on the result of the running total. The other way is to put the information into an array and then search the array for the A. I think i'd try the running total one first as that appears as though it would work.

HTH
 
You could use the running total approach, or you could create a formula {@hasA}:

if {table.ID} = "A" then 1 else 0

Then for your suppression formula use:

sum({@hasA},{table.groupfield}) > 0

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top