For Crystal 8.5, a command like
DateAdd ("m", -3, {billing.date})
would get you a date three months ago. The comlpication in your case is the variable, {billing.frequency}. I don't think the command would accept a variable, though it might. Otherwise you'd need a series of tests,
if {billing.date} = 3
then DateAdd ("m", -3, {billing.date})
etc.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.