A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Month To Date Expression



 
 
Thread Tools Display Modes
  #1  
Old May 19th, 2004, 03:05 AM
Duane Hookom
external usenet poster
 
Posts: n/a
Default Month To Date Expression

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


"claudia" wrote in message
...

Thanks to the group, I was able to set up an expression in my query to
report year to date sales... but still hung up on Month to date
This is the expression for YTD... any modification suggestions to
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 !!!!!


------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~View and post usenet messages directly from http://www.ExcelForum.com/



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 09:02 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.