how to use string functions to compare two string in crystal report to print conditional data ?
Posted on 2008-10-25
I have following three fields in my table and there sample data
1) Address = 123 Street, mycity
2) Bank = TD Bank , branch 103 , Mississauga
3) Remarks = Money deposit in Bank
I am using sql stored procedure to populate my data for cystal report.
I want to print only one field in my report: Address or Bank depending on my Remarks field data. If I have word "Bank" in my Remarks my Bank field will be print otherwise Address only.
How can I do that in crystal report? It easy to do in VB. I have found some crystal report function like InStr and StrComp but don't know how to use them. No example found.