Month To Date Expression

C

claudia

Thanks to the group, I was able to set up an expression in my query t
report year to date sales... but still hung up on Month to date
This is the expression for YTD... any modification suggestions t
report Month only?

04YTDSales: Sum(Abs(Year([PostMonth])=(2004))*[CommVolume])

CommVolume is our commission paid $$..
PostMonth is date commisssion was paid mmmyyyy format
I want my report to show a field w/current month & year to date
THANK YOU !!!!
 
D

Duane Hookom

Month to date would be (assuming PostMonth is a date field):
MTDSales:
Sum(Abs(Format([PostMonth],"yyyymm")=Format(Date(),"yyyymm"))*[CommVolume])
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top