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

Select on comparison of detail records?

Status
Not open for further replies.

sugabutt

Technical User
Jan 3, 2009
16
US
I need to be able to do a selection based on a comparison of the salesman number that re in 2 separate records, where the saleman number doesn't match.

Currently I have the data grouped by customer number. And I'm selecting on Type (1 and 7). If the salesman number for these two records do not match, then I need to see it listed on the report.

Cust# Type Salesman
1234 1 2222
1234 7 2222
--- would not need these records above selected, because the salesman number matches

Cust# Type Salesman
5555 1 1111
5555 7 2222
--- I would want to select these 2 records because the salesman doesn't match.

Any suggestions on how I can do this?



 
Go to report->selection formula->GROUP and enter:

distinctcount({table.salesman},{table.customer#}) > 1

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top