Hi,
I have a query that works fine and populates a list of records and related fields. From this list their is a specific field I am interested in, Line Item ID, which is stored as double. In the query of records I will have a combination of unique Line Item ID's and duplicate Line Item ID's. My goal is for each record to find out if the Line Item ID exists in a data table called "Table1" if it exists more than once I would like the query to exclude this record and all records with this Line Item ID from my query "Query1".
It is an unusual request, but I'm not sure how to accomplish this task. I think I may need to incorporate some VBA once my query populates and loop through the records and delete one's that do not hold true to my above criteria?
Does anyone have any suggestions?
Thanks in advance,
I have a query that works fine and populates a list of records and related fields. From this list their is a specific field I am interested in, Line Item ID, which is stored as double. In the query of records I will have a combination of unique Line Item ID's and duplicate Line Item ID's. My goal is for each record to find out if the Line Item ID exists in a data table called "Table1" if it exists more than once I would like the query to exclude this record and all records with this Line Item ID from my query "Query1".
It is an unusual request, but I'm not sure how to accomplish this task. I think I may need to incorporate some VBA once my query populates and loop through the records and delete one's that do not hold true to my above criteria?
Does anyone have any suggestions?
Thanks in advance,