Using CR 7, mysql v.4
This is what my output looks like now
Customer Service Desc Service Date
---------------------------------------
Cust1 ServDesc1 12/2/05
Cust1 ServDesc2 12/2/05
Cust1 ServDesc3 12/15/05
What I'm trying to do is for the dates that are the same, concatenate the service desc so they appear on the same line like the following:
Customer Service Desc Service Date
-----------------------------------------------
Cust1 ServDesc1, ServDesc2 12/2/05
Cust1 ServDesc3 12/15/05
I've setup the following formulas:
In GH to reset
whileprintingrecords;
StringVar ServDesc:="";
stringVar strDate := "" ;
In detail section
whileprintingrecords;
StringVar ServDesc;
StringVar strDate;
StringVar prevDate;
strDate := ToText ({tbl_report.ServDate});
if totext({tbl_report.DateBeg}) = strDate then
ServDesc := ServDesc + ", " + {tbl_report.ServDesc}
else
ServDesc := {tbl_report.ServDesc}
Appreciate any help.
This is what my output looks like now
Customer Service Desc Service Date
---------------------------------------
Cust1 ServDesc1 12/2/05
Cust1 ServDesc2 12/2/05
Cust1 ServDesc3 12/15/05
What I'm trying to do is for the dates that are the same, concatenate the service desc so they appear on the same line like the following:
Customer Service Desc Service Date
-----------------------------------------------
Cust1 ServDesc1, ServDesc2 12/2/05
Cust1 ServDesc3 12/15/05
I've setup the following formulas:
In GH to reset
whileprintingrecords;
StringVar ServDesc:="";
stringVar strDate := "" ;
In detail section
whileprintingrecords;
StringVar ServDesc;
StringVar strDate;
StringVar prevDate;
strDate := ToText ({tbl_report.ServDate});
if totext({tbl_report.DateBeg}) = strDate then
ServDesc := ServDesc + ", " + {tbl_report.ServDesc}
else
ServDesc := {tbl_report.ServDesc}
Appreciate any help.