koolwaters
Active Member
- Joined
- May 16, 2007
- Messages
- 403
I am trying to create a query that finds duplicates in a particular column but only if the date column is on or after the current date.
I used the Wizard which correctly returns the duplicated records. However, when I add my date criteria I am not getting the results I want.
For example, let's say I am trying to find a duplicated CustomerJobID but only if the ServiceDate is scheduled for today or later. So I have two JobIDs of 23. The find duplicates query returns those two records. I then need to filter those two records if the ServiceDate is on or after the current date. I created a query based on the find duplicates and for the ServiceDate field I have the criteria >=Date(). This then returns one record because only one job is scheduled for today or after. This is not what I want however. Since only one job meets the criteria, it is no longer a duplicate job.
Is there any way to accomplish this without creating multiple find duplicates queries?
Thanks in advance for any help.
I used the Wizard which correctly returns the duplicated records. However, when I add my date criteria I am not getting the results I want.
For example, let's say I am trying to find a duplicated CustomerJobID but only if the ServiceDate is scheduled for today or later. So I have two JobIDs of 23. The find duplicates query returns those two records. I then need to filter those two records if the ServiceDate is on or after the current date. I created a query based on the find duplicates and for the ServiceDate field I have the criteria >=Date(). This then returns one record because only one job is scheduled for today or after. This is not what I want however. Since only one job meets the criteria, it is no longer a duplicate job.
Is there any way to accomplish this without creating multiple find duplicates queries?
Thanks in advance for any help.