I am working on a report that excludes all information prior to the current month. I have a date field in short date format and it would be easy enough to simply put in a new date constraint each month. I would like automate this and I am going down the path of pulling out the year and month using the following expression in my query:
MonthAndYear: Year([Accounting Date]) & Month([Accounting Date])
I placed the following contraint to eliminate this month:
<Year(Now()) & Month(Now())
This would work exept that the month in the above expressions is not always two characters (i.e. 01, 09, 12). Is there a way to force a 0 in the above expression for January through September? Or, please let me know if there is a better approach. Thanks for any insight!
MonthAndYear: Year([Accounting Date]) & Month([Accounting Date])
I placed the following contraint to eliminate this month:
<Year(Now()) & Month(Now())
This would work exept that the month in the above expressions is not always two characters (i.e. 01, 09, 12). Is there a way to force a 0 in the above expression for January through September? Or, please let me know if there is a better approach. Thanks for any insight!