I recommend using one field for date and time. Also add another field to
Calls Table named something like Finish as a Yes/No to check if that call
does not need to show again.
I only put LastName from Contact Table in the query. You can add as much as
you need for your form that will use the query.
SELECT [Contact Table].LastName, [Calls Table].CallDate, [Calls
Table].Subject, [Calls Table].Notes, [Calls Table].Finish
FROM [Contact Table] INNER JOIN [Calls Table] ON [Contact Table].ContactID =
[Calls Table].ContactID
WHERE ((([Calls Table].CallDate)<=Date()-20) AND (([Calls Table].Finish)=0));
dhlively said:
Contact Table:
ContactID
LastName
FirstName
CoName
Address1
Address2
City
State
Zip
ContactTypeID
WorkPhone
WorkExtension
EmailName
Title
AssistantName
Dear
Region
Country
MobilePhone
FaxNumber
LastMeetingDate
ReferredBy
Notes
DateMailed
Calls Table:
CallID
ContactID
CallDate
CallTime
Subject
Notes
The tables are linked by ContactID. I use a form based on the Contacts
Table and a subform based on the Calls Table. When I visit a customer, I
look up their record using the Contact form, and enter the information on the
call such as the date and time of the call and what we talked about.
I would like to create a query that when run, shows me the customers I
talked to 20 days ago, based on call date, so that I can revisit them.
Thanks for all of your help.