Date Criteria - no older than 30 days

B

Bob Watson

If you have a field named "Date" how do
you phrase a criteria to get records no older
than 30 days??

[date]=> (today-30) ????


TIA,
Bob
 
J

Jackie L

First,
It is not a good idea to name a field "Date" since that is a function also.

Either way, are you putting this criteria in a query? If so, you can use
the following on the criteria line of your "Date" field:
=Date()-30


If you would like to restrict it based on a different increment than days,
check the Microsoft knowledgebase for "Functions for Calculating and
Displaying Date/Time Values"

Hope this helps.

Bob Watson said:
If you have a field named "Date" how do
you phrase a criteria to get records no older
than 30 days??

[date]=> (today-30) ????


TIA,
Bob
 
B

Bob Watson

Thank you ... I agree with you, I would never
name a field DATE or TIME or Lots-of-other-things
that sound like a function. I got into this
game late.




Jackie L said:
First,
It is not a good idea to name a field "Date" since that is a function
also.

Either way, are you putting this criteria in a query? If so, you can use
the following on the criteria line of your "Date" field:
=Date()-30


If you would like to restrict it based on a different increment than days,
check the Microsoft knowledgebase for "Functions for Calculating and
Displaying Date/Time Values"

Hope this helps.

Bob Watson said:
If you have a field named "Date" how do
you phrase a criteria to get records no older
than 30 days??

[date]=> (today-30) ????


TIA,
Bob
 

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

Top