I have two queries that feed into a table; the first makes the table and the second appends to it. Then I query the table. My final query outputs names, actions, and dates.
Just due to the nature of appending the records, I will have records such as:
-- Name, Action, Date=Good
-- Name, Action, Date=Null
I'd like to find a way to filter my query so that if I have any record where ("Name"&"Date") duplicates any other records and Date = Null, that record is excluded.
I exported my data to Excel and did the following:
-- Sorted Name (Ascending), Action (Ascending), Date (Newest first)
-- Added a helper column with: =IF((B2&D2)=(B1&D1)," ","Good")
-- When filled down, any records with the same name and action but a blank date did not have "Good".
-- Filtering on the last column for "Good" gave me my desired results.
Can I duplicate this in my query? (Or even preferred at the table level?)
Ed
Just due to the nature of appending the records, I will have records such as:
-- Name, Action, Date=Good
-- Name, Action, Date=Null
I'd like to find a way to filter my query so that if I have any record where ("Name"&"Date") duplicates any other records and Date = Null, that record is excluded.
I exported my data to Excel and did the following:
-- Sorted Name (Ascending), Action (Ascending), Date (Newest first)
-- Added a helper column with: =IF((B2&D2)=(B1&D1)," ","Good")
-- When filled down, any records with the same name and action but a blank date did not have "Good".
-- Filtering on the last column for "Good" gave me my desired results.
Can I duplicate this in my query? (Or even preferred at the table level?)
Ed