Automatically change a criteria (1 Viewer)

supercharge

Registered User.
Local time
Today, 09:00
Joined
Jun 10, 2005
Messages
215
Hello to all the xperts out there,

I have a query with this criteria for Date field:

Code:
Where (([tblList].Date)>=#11/1/2005# And ([tblList].Date)<#12/1/2005#))
Is there any quick way, besides creating a form and run the query based on it, to have this criteria updated itself when it's a new month? I've gotten tired of changing it every month.

Thanks in advance
 
Last edited:

jeremie_ingram

Registered User.
Local time
Today, 11:00
Joined
Jan 30, 2003
Messages
437
You could use a query to generate the data into a custom field with the setting of "1/" & Month(Now()) & "/" & Year(Now()).

This would always display 1/curMonth/CurYear
 

pdx_man

Just trying to help
Local time
Today, 09:00
Joined
Jan 23, 2001
Messages
1,347
Where Month([tblList].Date) & Year([tblList].Date) = Month(Date()) & Year(Date())

Using the fieldname Date is poor naming convention as it is also the reserved function to get the system date. I would suggest changing that.
 

Users who are viewing this thread

Top Bottom