Calculating using current date

ladydazy

New member
Local time
Today, 03:20
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.
 
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

Back
Top Bottom