I have a column in the table used for my sql query that tells me whether a customer is in credit or debt by a field called CreditDebit being marked with either a 'CR' or a 'DB'. How can I put a conditional statement on a record box so that if the field is CR then the record box says you are in credit while if its DB it says balance due is
Any help would be greatly appreciated.
conditional text based on field value
Re: conditional text based on field value
Support · Feb 2, 2015Hello,
You can achieve using requirement by using combination of StrComp and IIF functions. Please refer to the documentation on functions here
.
Below is the syntax for it. Also please note that if the StrComp function returns true then “Credit” is added to the RecordBox.
IIF(StrComp(FieldName,"string to compare"),"Balance","Credit")
Thanks,
ceTe Software Support Team.