Bloomlight,
Assuming you would run this report in September 2011 for an August 1, 2011 "Trigger Date" - the following should work.
{@Trigger_StartofPriorMonth}
Code:
[blue]DateAdd[/blue]("m",-1,[blue]Date[/blue]([blue]Year[/blue]([blue]CurrentDate[/blue]),[blue]Month[/blue]([blue]CurrentDate[/blue]),1))
Using the "DateAdd()" function, this formula will determine the 1st of the Current Month, then "Add" -1 Month from this date. Not to be confused with the "DateDiff()" function which is used to determine the number of a certain interval between two dates.
I used a formula with a few quick test dates for "CurrentDate" in it to check the above, and it works for all the test dates
Test Dates & Result of Formula:
CurrentDate -- August 1st, 2011
Aug 15/2011 -- July 1st, 2011
July 15/2011 -- June 1st, 2011
Jan 15/2011 -- December 1st, 2010
Sept 15/2010 -- August 1st, 2010
Hope this helps!
Mike
---------------------------------------------------------------
"To be alive is to revel in the moments, in the sunrise and the sunset, in the sudden and brief episodes of love and adventure,
in the hours of companionship. It is, most of all, to never be paralyzed by your fears of a future that no one can foretell."