elsenorjose
Technical User
Hi folks,
Using CR XI R2 on Windows 7 Professional. Database is on a SQL Server 2008 server.
I'm trying to create a series of formulas to display notes that are stored in multiple rows and concatenate them on one row.
In the Group Header I have @InitialiseNote
WhilePrintingRecords;
StringVar ConcatNote := "";
In the Details Section I have @UpdateNote
WhilePrintingRecords;
StringVar ConcatNote := If IsNull({SO_Note.COMNT_30}) Then ""
Else ConcatNote + {SO_Note.COMNT_30}+",";;
Finally, in the Group Footer I have @ShowNote
WhilePrintingRecords;
If IsNUll({SO_Note.COMNT_30}) Then "" Else
StringVar ConcatNote;
What I'm trying to do is separate the values with a comma but if there are no values, I just get a lot of commas. How can I modify the formula(s) to display comma separated strings if there's more than one note but not show anything if there are no records?
Thank you
Using CR XI R2 on Windows 7 Professional. Database is on a SQL Server 2008 server.
I'm trying to create a series of formulas to display notes that are stored in multiple rows and concatenate them on one row.
In the Group Header I have @InitialiseNote
WhilePrintingRecords;
StringVar ConcatNote := "";
In the Details Section I have @UpdateNote
WhilePrintingRecords;
StringVar ConcatNote := If IsNull({SO_Note.COMNT_30}) Then ""
Else ConcatNote + {SO_Note.COMNT_30}+",";;
Finally, in the Group Footer I have @ShowNote
WhilePrintingRecords;
If IsNUll({SO_Note.COMNT_30}) Then "" Else
StringVar ConcatNote;
What I'm trying to do is separate the values with a comma but if there are no values, I just get a lot of commas. How can I modify the formula(s) to display comma separated strings if there's more than one note but not show anything if there are no records?
Thank you