Hi,
I have a record of my staff members. I display this on a form using a list box. What I want to do is to be able to click on various buttons each with an SQL statement like the one below that will filter the data by Today, This Week, Last Week, This Month and This Year.
The code below works well for all the entries that I modified for today but I haven't been able to modify the code to filter the data for the other criterias listed above.
strWhereSql = "WHERE [Staff].[Entered On] = Date()"
Can anybody give me an asistance please?
Thanks.
SA.
I have a record of my staff members. I display this on a form using a list box. What I want to do is to be able to click on various buttons each with an SQL statement like the one below that will filter the data by Today, This Week, Last Week, This Month and This Year.
The code below works well for all the entries that I modified for today but I haven't been able to modify the code to filter the data for the other criterias listed above.
strWhereSql = "WHERE [Staff].[Entered On] = Date()"
Can anybody give me an asistance please?
Thanks.
SA.