davesmith202
Employee of Access World
- Local time
- Today, 19:46
- Joined
- Jul 20, 2001
- Messages
- 522
I have two tables:
1. ActivityLog: ID, Customer, Date, Activity, Details, ContactSuccess (
2. Contacts: ID, Company, ContactFirstName, ContactLastName
I want to create a Query that filters records on only the last Date in the ActivityLog table for each Customer where Date>45 days ago AND ContactSuccess=Yes
The idea is that you may have multiple Activity Log records for teh same customer, but we want to only find those that haven't been contacted in the last 45 days and where contactsuccess=Yes.
Then, I need to show the Company and Contact Name which meets this criteria, for each company. Essentially, you are left with a list of people you need to contact since you have not had successful contact with them in the last 45 days.
I'm thinking maybe this needs two Queries, with one a Totals Query but need some help!
Thanks,
Dave
1. ActivityLog: ID, Customer, Date, Activity, Details, ContactSuccess (
2. Contacts: ID, Company, ContactFirstName, ContactLastName
I want to create a Query that filters records on only the last Date in the ActivityLog table for each Customer where Date>45 days ago AND ContactSuccess=Yes
The idea is that you may have multiple Activity Log records for teh same customer, but we want to only find those that haven't been contacted in the last 45 days and where contactsuccess=Yes.
Then, I need to show the Company and Contact Name which meets this criteria, for each company. Essentially, you are left with a list of people you need to contact since you have not had successful contact with them in the last 45 days.
I'm thinking maybe this needs two Queries, with one a Totals Query but need some help!
Thanks,
Dave