P
Paul Fenton
Thanks to Ken and Van, this works...
DSum("[jobPrice]","tClients","Month([Date Sold])=1 And Year([Date
Sold])=2005")
to give me the total for January, this year. And I can get it for any
other month/year combination.
I want to make it more general and not specify the exact year, but
rather to make it work for "current year" or some # of years prior to
the current year. So I've been trying to make the statement work by
using Now() or Date() and Now()-1, Now()-2, etc. but I keep getting no
result or "Null" or syntax errors.
So how would I make it work using Now() instead of "2005" and Now()-1
instead of "2004"?
Paul Fenton
(e-mail address removed)
DSum("[jobPrice]","tClients","Month([Date Sold])=1 And Year([Date
Sold])=2005")
to give me the total for January, this year. And I can get it for any
other month/year combination.
I want to make it more general and not specify the exact year, but
rather to make it work for "current year" or some # of years prior to
the current year. So I've been trying to make the statement work by
using Now() or Date() and Now()-1, Now()-2, etc. but I keep getting no
result or "Null" or syntax errors.
So how would I make it work using Now() instead of "2005" and Now()-1
instead of "2004"?
Paul Fenton
(e-mail address removed)