Expand|Select|Wrap|Line Numbers
- tblPurchase contains:
- customerID
- dtePickup 'estimated date a customer will return to the shop
- tblPickup contains:
- dteArrived 'the actual date the customer returned
- status 'set to "pickup complete" or "will return another day"
1) Customers who came to the store, but could not pick up their item that day and should be returning soon for that purpose (being, any tblPickup entry where status="will return another day"), and
2) Customers who are anticipated to pickup their item who haven't already, being tblPurchase.dtePickup does not have a corresponding tblPickup.dteArrived within 2 months of it.
I know how to do item #1 alone in a query. I know how to do the reverse of item #2 in a query (that is, find all tblPurchase.dteArrived records that are within DateAdd("m",(+/-)2,tblPickup.dtePickup). However, I have no clue how to ascertain if a corresponding tblPickup record doesn't exist when expected to within that range. So, how do I write query criteria for records that *don't* exist?
If there's some way to combine both #1 and #2 for easy reporting, that would be all the better. Thank you, as always.