Thanks,
As I am new in Crystal and programming in general, I am having trouble creating the custom function.
I figured the YearToLastMonth function would not need variables, as CurrentDate is the only relevant date in both January 1st of this year and last day of last month.
Anyway, Crystal asks me for variables and gives me a lot of errors when I am trying to make the function.
Any suggestions on how to create it, please? Thanks in advance!!