How do I make criteria = dates

  • Thread starter Thread starter Ian
  • Start date Start date
I

Ian

I want to do a query, part of this query I need to know if a date is
approaching

i.e if john has completed training on the 20/03/06 and this training expries
on the 20/3/08. When I ran my training query I need to know any dates that
are 60 and 30 days from the expiry date.

I hope there is someone where that can help me out

Ian
 
In query design view, type an expression like this into the Field row:
Due: DateDiff("d", Date(), [ExpiryDate])

In the Criteria under this, you can use:
<= 30
or perhaps:
Between 0 And 60
 
Hi Allen

Thanks for the infomation that is working great

Ian

Allen Browne said:
In query design view, type an expression like this into the Field row:
Due: DateDiff("d", Date(), [ExpiryDate])

In the Criteria under this, you can use:
<= 30
or perhaps:
Between 0 And 60


Ian said:
I want to do a query, part of this query I need to know if a date is
approaching

i.e if john has completed training on the 20/03/06 and this training
expries
on the 20/3/08. When I ran my training query I need to know any dates
that
are 60 and 30 days from the expiry date.

I hope there is someone where that can help me out

Ian
 

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

modify table functions 1
Access Dcount (multiple criteria) 3
Query Date criteria 5
Date Calculation 1
Emailing formula results 1
Date query 4
Selecting last dated training record for each person 2
Passing Dates to Queries 1

Back
Top