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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Formatting a group if any one record in details matches criteria 1

Status
Not open for further replies.

dianemarie

Instructor
Jul 11, 2001
583
US
Hello, my report groups by client, and the details section (suppressed) has one to many orders for that client. I want the client group (header)to be highlighted if ANY of the orders in the detail section are of a specific type. I formatted the section with a formula, but it will only highlight the client if the first order it sees happens to meet the criteria. How can I tell it to highlight if ANY of the orders in details meet the criteria? The section formula is:

if {?Highlight Tests} = "Yes" and {Test/Cont} = "TEST" then Yellow else white

(Each order returns a field (Test/Cont) as either a Test or Cont) Thank you for any help.
 
You could do something like this
new formula
IIFF({?Highlight Tests} = "Yes" and {Test/Cont} = "TEST", 1, 0)

Add this forumal to the detail section and click on this field and create a summary and add this summary to the client header.

Then in the "format section" of the client group write

If (Summary Field)> 1 Then
crYellow
Else
crWhite
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top