Curent month

Chimp8471

Registered User.
Local time
Today, 16:22
Joined
Mar 18, 2003
Messages
353
I need to run a query, to only include data for the current month, so when we move into the next month, then run the same query it only includes the data for that current month.

Help

Andy
 
Criteria (caution: may warble)

Between DateSerial(Year(Date()), Month(Date()), 1) And DateAdd("d",-1,DateSerial(Year(DateAdd("m",1,Date())),Month(DateAdd("m",1,Date())),1))
 
SELECT * FROM YourTableName
where Month(YourFieldName)=Month(Date()) and
Year(YourFieldName)=Year(Date())
 
That too. :cool: I just love long crap...
 

Users who are viewing this thread

Back
Top Bottom