Date Calculations

Sgt Bilkp

Registered User.
Local time
Today, 18:29
Joined
Jan 11, 2008
Messages
66
Bit of a Query on a Query!

I have a table (tblTraining) and a field called QualExpiry (short date field). This is date listing when a persons qualification requires renewal (expires). To plan ahead, i want to run a query listing all my staff members courses when the expiry date is only 4 months away, and order the records in ascending order (so those closest to those with greatest time). Any ideas?
 
Set the criteria for your date field to: <= dateadd("m", 4, date()), then sort on that field.

Bob
 
You can use the DateAdd function to add 4 months to the current date (Date function) and use that in the criteria.
 

Users who are viewing this thread

Back
Top Bottom