Hattrick16
Technical User
I have an access table that looks like Field1 and Field2 and the Desired Action Column shows how I want to chage the table.
Field1 Field2 Desired Action
4321 Keep
5678 Keep
1234 Delete
1234 xx Keep
1234 yy Keep
5678 Delete
5678 xx Keep
5678 yy Delete
7890 Keep
Where there are duplicates in Field1 I want only the record in Field2 where it is "XX".
I was thinking of approaching it this way.. But I am a beginner and Do not have any Idea how to begin.
Step One : Identify the Field one values that have XX in Field2.
Step Two : Extracting all the records where the Field one values that have "XX" in field2 and hold those records.
Step Three : Delete all the records with Field One Values Identified in Step One.
Step Four: Append the Records being Held in Step Two.
Field1 Field2 Desired Action
4321 Keep
5678 Keep
1234 Delete
1234 xx Keep
1234 yy Keep
5678 Delete
5678 xx Keep
5678 yy Delete
7890 Keep
Where there are duplicates in Field1 I want only the record in Field2 where it is "XX".
I was thinking of approaching it this way.. But I am a beginner and Do not have any Idea how to begin.
Step One : Identify the Field one values that have XX in Field2.
Step Two : Extracting all the records where the Field one values that have "XX" in field2 and hold those records.
Step Three : Delete all the records with Field One Values Identified in Step One.
Step Four: Append the Records being Held in Step Two.