Calculating using current date (1 Viewer)

ladydazy

New member
Local time
Yesterday, 22:17
Joined
Mar 25, 2004
Messages
7
Hmm, I've been wondering and experimenting... :confused:
How does one list all activities within the last month (and the month would be the current month, whenever the current month is) from a table such as:

tblActivity
activityid
activityname
startdate
enddate

I tried using the TODAY () function in an SQL query and Access said there was an undefined function (TODAY() ) in the statement.
 

Pat Hartman

Super Moderator
Staff member
Local time
Today, 01:17
Joined
Feb 19, 2002
Messages
43,233
Date() is the function that returns today's date.
 

AN60

Registered User.
Local time
Today, 06:17
Joined
Oct 25, 2003
Messages
283
I use this in a query when I want to view data for the current month;
Between DateSerial(Year(Date()),Month(Date()),1) And Date()
 

Users who are viewing this thread

Top Bottom