Hi
Looking for some formula advice if possible in Crystal Reports 9.5.
I have created a report with a date parameter field ({?Expiry Date}), and am looking for the report to find records where the description includes the letters ext AND they have either a temporary expiry date OR renewal date that is equal to the date parameter that the user enters. Formula that I am using is below:
{Licenses.Description} like "*ext*" and
({Licenses.TempExp}={?Expiry Date} or {Licenses.RenewalDate}={?Expiry Date})
The problem that I am finding is that my OR command seems to be being ignored. With the above I find anything where the description contains ext and TempExp is equal to the {?Expiry Date}.
If I reverse the formula to:
{Licenses.Description} like "*ext*" and
({Licenses.RenewalDate}={?Expiry Date} or {Licenses.TempExp}={?Expiry Date})
I find anything where the description contains ext and RenewalDate is equal to the {?Expiry Date}. I just cannot find both.
Any help of advice would be greatly appreciated before I rip all my hair out.
Looking for some formula advice if possible in Crystal Reports 9.5.
I have created a report with a date parameter field ({?Expiry Date}), and am looking for the report to find records where the description includes the letters ext AND they have either a temporary expiry date OR renewal date that is equal to the date parameter that the user enters. Formula that I am using is below:
{Licenses.Description} like "*ext*" and
({Licenses.TempExp}={?Expiry Date} or {Licenses.RenewalDate}={?Expiry Date})
The problem that I am finding is that my OR command seems to be being ignored. With the above I find anything where the description contains ext and TempExp is equal to the {?Expiry Date}.
If I reverse the formula to:
{Licenses.Description} like "*ext*" and
({Licenses.RenewalDate}={?Expiry Date} or {Licenses.TempExp}={?Expiry Date})
I find anything where the description contains ext and RenewalDate is equal to the {?Expiry Date}. I just cannot find both.
Any help of advice would be greatly appreciated before I rip all my hair out.