Program a date

  • Thread starter jln via AccessMonster.com
  • Start date
J

jln via AccessMonster.com

Im trying to find a way to put todays date into a querys where. I want the
date to change with the computers date. date need to go in looking like
1/18/2006
 
J

John Spencer

There is a Date function. That returns the computer's date.

Field: TodayIs: Date()


or in criteria
Criteria: = Date()

Access will probably strip off the () at the end.

If you have a field named Date then you may have a problem with this - which
is a good reason to never name a field Date, but to always give it a name
like StartDate or SaleDate. If you have that problem and cannot fix the
field name, you can use DateValue(Now()) to return the date.
 
A

Al Campagna

I'd like to discuss my social life, but... that would be dating myself. :-D
Al

Klatuu said:
I would love to be able to program my dates.

Think of all the fun I could have :)
 

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