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

how do I eliminate group of records if one has specific value?

Status
Not open for further replies.

mgossman

Technical User
Apr 20, 2001
18
US
I am accessing a table that has multiple records for each key. I want to print out all records for a key value, unless one of the records contains a certain field value. In that case, I don't want to print out any of the detail records. so if records were:

Key Field Value
1234 record for this key
1234 another record for this key
1234 another record for this key
2345 record for this key
2345 another record for this key
2345 another record for this key
2345 don't print this record

My report would contain all records with key 1234, but none with key 2345.
 
Create a formula like {@unwantedvalue}:

if {table.field} = "don't print this record" then 1

Substitute your actual criterion.

Then go to report->selection formula->GROUP and enter:

sum({@unwantedvalue},{table.key}) = 0

This assumes you have a group on {table.key}.

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top