Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reminder based on date 1 week / 1 month from now 1

Status
Not open for further replies.

SeadnaS

Programmer
May 30, 2011
214
0
0
How would I create a reminder to show how many of my records date fields are within 1 week or 1 month from now (in the future) I want to show a list on my form showing how many records due dates are within a month and within a week.

Finding it hard to find info on how to do this, any help much appreciated!
 
A starting point (SQL code):
Code:
SELECT Count(*) AS HowManyW
FROM yourTable
WHERE [your due date field] BETWEEN Date() And DateAdd("w",1,Date())
Code:
SELECT Count(*) AS HowManyM
FROM yourTable
WHERE [your due date field] BETWEEN Date() And DateAdd("m",1,Date())

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Wow a lot simpler than i thought it would be! So these queries are listing how many records are less than a week/month away. Is this correct?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top