I am creating a database for refund requests.. Sometimes the refund request can be duplicated so I have a query using
" In (SELECT [OrderNumber] FROM [tblRefunds] As Tmp GROUP BY [OrderNumber] HAVING Count(*)>1 ) "
to identify these duplicates..
I also then have another column called Allowed? Which is a Yes/No tick box.. And Then another Column Called Checked which is a again a Yes/No. If the duplicate entry is allowed and we want the customer to be refunded twice the user selects Yes in the allowed column. I then have an update query that then checks all orders and if it see's allowed it marks it as checked in the checked column.. Both can then be refunded. The problem I have is I then dont want these duplicate records to appear again unless a new record is entered which causes a third duplicate.. I then want all 3 to be displayed until I either mark the 3rd duplicate as allowed or I delete it. I know this probably isnt something that is correct in the world of access but unfortunatly we sometimes require 2 refunds to be raised under the same order details.
Hope all of the above makes sense....
Thanks guys!
" In (SELECT [OrderNumber] FROM [tblRefunds] As Tmp GROUP BY [OrderNumber] HAVING Count(*)>1 ) "
to identify these duplicates..
I also then have another column called Allowed? Which is a Yes/No tick box.. And Then another Column Called Checked which is a again a Yes/No. If the duplicate entry is allowed and we want the customer to be refunded twice the user selects Yes in the allowed column. I then have an update query that then checks all orders and if it see's allowed it marks it as checked in the checked column.. Both can then be refunded. The problem I have is I then dont want these duplicate records to appear again unless a new record is entered which causes a third duplicate.. I then want all 3 to be displayed until I either mark the 3rd duplicate as allowed or I delete it. I know this probably isnt something that is correct in the world of access but unfortunatly we sometimes require 2 refunds to be raised under the same order details.
Hope all of the above makes sense....

Thanks guys!