before and after dates

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I want to contact customers after their inital contact date between the 30 -
45 day after purchase. How can I get a query to calcuate 30 days and 45 days
after the initial contact date and at the same time use those to day criteria
as a filter from all of my other customers on file? I don't want to manually
calucate the date but have a report that informs me that it is time to
contact these particular customers.

Any help would be greatly appreciated?
 
I would add a flag field to indicate if the followup was completed. Then in
your query use this as criteria on the Contact_Date field --
<=Date()-30
Also use criteria to not pull records that are flagged as followup completed.
 
On Wed, 2 Aug 2006 13:13:47 -0700, D.F. Pierce <D.F.
I want to contact customers after their inital contact date between the 30 -
45 day after purchase. How can I get a query to calcuate 30 days and 45 days
after the initial contact date and at the same time use those to day criteria
as a filter from all of my other customers on file? I don't want to manually
calucate the date but have a report that informs me that it is time to
contact these particular customers.

Any help would be greatly appreciated?

Use a criterion on the Contact Date of
= DateAdd("d", -45, Date()) AND < DateAdd("d", -30, Date())

to select records where today's date is in that range.


John W. Vinson[MVP]
 
A query such as this should do it:

SELECT Customer, Address, Phone, SaleDate
FROM Customers INNER JOIN Sales
ON Customers.CustomerID = Sales.CustomerID
WHERE DATE() – SaleDate BETWEEN 30 AND 45
AND NOT Contacted;

where Contacted is a Boolean (Yes/No) column in the Sales table which
indicates if the customer has been contacted with regard to that sale.

Ken Sheridan
Stafford, England
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Calculate working days between records 3
Access - Manual Date Calculator 3
Excel Excel due and overdue date colours 2
autofill in query 2
Excel Colour code dates 1
Date Comparisons 4
subtract dates 1
general advice 3

Back
Top