I've been looking at this some more, and from what I am seeing the reason for the report not picking up data is due to leading zeroes in the Month code that was in the report. I've changed the code, and this should work, but instead, when I schedule the report to run, I get an error message. Here are the details:
This is the code behind the Formula Field:
------------------------------------------
NumberVar TrimYear := ToNumber(Left(ToText({ACURA_INET_PURCHASE_SUMMARY.PERIOD}),4));
NumberVar TrimMonth := ToNumber(Right(ToText({ACURA_INET_PURCHASE_SUMMARY.PERIOD}),2));
StringVar TheDate := ToText(CDate(TrimYear,TrimMonth,01), "MM/dd/yy" );
DateVar TheFinalDate := Date(TheDate);
Month(TheFinalDate)
=======================================
This is the Error Message:
--------------------------
Error in formula <Month>. 'NumberVar TrimYear := ToNumber(Left(ToText({TABLESPACE.PERIOD}),4)); ' A month number must be between 1 and 12. Details: errorKind
=======================================
This is the what the data looks like in the database from the PERIOD field in the table:
------
{TABLESPACE.PERIOD} = 201102