G
Guest
I am trying to figure out the code to add to my where clause a statement that
only selects those records that are between a specific date.
Here is what i have for the current year:
WHERE (((Year([DateWorked]))=2004))
But i want to set it up so its not equal to 2004 but to the current year
(I'm guessing this somehow uses DatePart, but i do not know how.
I also want to do this for week, month, and quarter. Here is what i tried
for month, but this did not work:
WHERE (((Month([DateWorked]))=(Month(Date()))
only selects those records that are between a specific date.
Here is what i have for the current year:
WHERE (((Year([DateWorked]))=2004))
But i want to set it up so its not equal to 2004 but to the current year
(I'm guessing this somehow uses DatePart, but i do not know how.
I also want to do this for week, month, and quarter. Here is what i tried
for month, but this did not work:
WHERE (((Month([DateWorked]))=(Month(Date()))