Chimp8471 Registered User. Local time Today, 11:18 Joined Mar 18, 2003 Messages 353 Oct 30, 2003 #1 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
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
Mile-O Back once again... Local time Today, 11:18 Joined Dec 10, 2002 Messages 11,305 Oct 30, 2003 #2 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))
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))
IgorB Registered User. Local time Today, 11:18 Joined Jun 4, 2003 Messages 183 Oct 30, 2003 #3 SELECT * FROM YourTableName where Month(YourFieldName)=Month(Date()) and Year(YourFieldName)=Year(Date())
SELECT * FROM YourTableName where Month(YourFieldName)=Month(Date()) and Year(YourFieldName)=Year(Date())
Mile-O Back once again... Local time Today, 11:18 Joined Dec 10, 2002 Messages 11,305 Oct 30, 2003 #4 That too. I just love long crap...