So here goes:
So has anyone else had to find records with no match within a specific date timeframe?
- We are a tractor dealership. When the Salesmen contact a farm, we want to document that visit. We would like a report that tells the Salemen which farms they haven't visited in the last 60 days.
- I have a database that has three types of records: Farm, Contact, Activity
- I also have Farm_Contact for the many-to-many and Contact_Activity for the many-to-many
- All this works great.
- I created a 60_Day_Query that uses ALL the above mentioned records that creates an activity record with information from Farm, Contact and Activity (Farm_Activity). This query selects only those records that match on the Salesman and have a date not older that 60 days. This query works fine.
- I created a query using the no matching record Wizard using Farm_Activity and the 60_Day_Query. This provided me with the Farm records that have had no activity in the past 60 days.
- Now here is the problem. I want to show activity proir to the last 60 days, for those Farms_with_no_activity. So I duplicated the 60_Day_Query but eliminated the date check.
- So then I created a query using the Farms_with_no_activity and the 60_Day_Query_No_Date. I joined them using Farm_Id where with the rule: Use all Farms_with_no_Activity and only the matching 60_Day_Query_NO_Date records. Here is the problem: I get the information from the Farms_with_no_activity, but do not get the information from the 60_Day_Query_No_Date. I have records in both queries that match, so I should have all the information.
Does anyone have any idea how to sovle my problem at item no. 8?
Trudy