Today's date less one year query (1 Viewer)

mkdrep

Registered User.
Local time
Today, 03:59
Joined
Feb 6, 2014
Messages
176
I have a number of quotations that I would like to follow up on and I want to base it on all quotations from the date the query is run, going back one year. I know I can manually set the query up to input a date range, but I'd like the query to run and automatically go back one year.

For example, the field I am using is [JobBidDate] and I would like the query to run and include a jobs with a [JobBidDate] of today's default date and going back (352) days.

Any suggestions.
 

MarkK

bit cruncher
Local time
Today, 00:59
Joined
Mar 17, 2004
Messages
8,181
Being the WHERE clause in your query . . .
Code:
WHERE JobBidDate >= Date() - 352
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 15:59
Joined
May 7, 2009
Messages
19,241
Where [JobBidDate] Between DateAdd("yyyy",-1,Date()) And Date()
 

Users who are viewing this thread

Top Bottom