Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Accessing the Current Date

Status
Not open for further replies.

Delboy14

Programmer
Jun 21, 2001
213
GB
(Access 2002)
Is there anyway to access the current date in Access, I would like to put the current date into a field value in a query.

e.g. Select Name, Address, StartDate, Date
From Details
Where Date := Current Date

I would then like to select the records whose start date is 3 months or greater than the current date.

Does anyone know how to acces the current date, through the system clock or some other method, as I think I can do the rest, thankyou for any help
 
Use Date() instead of Now(). Now() returns the date and time, Date() returns just the Date, and I bet you can't guess what Time() returns! ;-)

HTH Joe Miller
joe.miller@flotech.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top