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!

filter for fields containing same entry/data

Status
Not open for further replies.

boofayah

Technical User
Feb 13, 2005
5
CA
I want to filter by input, records that are identical according to field1. For example if records 1 and 2 have same identical field1=x AND records 6,7,8 have identical field1=y, but record 1 and 6 field1 aren't identical(x not equal y). After applying the filter I want records 1,2,6,7,8.

Any advice is appreciated.
 
So, suppose your table name is TableA then create a query with TableA and TableA (second time)

Code:
SELECT - your fields -
FROM TableA INNER JOIN TableA AS TableA_1 on (TableA.Field1=TableA_1.Field1);
[\code]

After applying the filter, change the record source from your TableA to this query.
The joinning of the TableA to itshelf on Field1, produces the result set of records that are identical according to Field1
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top