Hello all,
I have a Crystal Report that totals orders for the month. I used the following code
to conditionalize it before. But due to a change in the way we report, I had to change my running total field, and was forced to switch to using the 3 formula trick for my running total.
I essentially want to apply the above condtions to the following
Thanks in advance for any help, and I apologize if I've missed any important details.
I have a Crystal Report that totals orders for the month. I used the following code
Code:
if {BAQReportParameter.Check02} = false AND {BAQReportParameter.Check03} = false
then {BAQReportResult.OrderDtl.ProdCode} = "GUN"
or {BAQReportResult.OrderDtl.ProdCode} = "TRE"
or {BAQReportResult.OrderDtl.ProdCode} = "BORE"
or {BAQReportResult.OrderDtl.ProdCode} = "CON"
or {BAQReportResult.OrderDtl.ProdCode} = "GM"
or {BAQReportResult.OrderDtl.ProdCode} = "HONE"
or {BAQReportResult.OrderDtl.ProdCode} = "SPA"
or {BAQReportResult.OrderDtl.ProdCode} = "SUB"
or {BAQReportResult.OrderDtl.ProdCode} = "PDN"
or {BAQReportResult.OrderDtl.ProdCode} = "PDR"
or {BAQReportResult.OrderDtl.ProdCode} = "TURN"
else if {BAQReportParameter.Check02} = TRUE
then {BAQReportResult.OrderDtl.ProdCode} = "GUN"
or {BAQReportResult.OrderDtl.ProdCode} = "BORE"
or {BAQReportResult.OrderDtl.ProdCode} = "CON"
or {BAQReportResult.OrderDtl.ProdCode} = "GM"
or {BAQReportResult.OrderDtl.ProdCode} = "HONE"
or {BAQReportResult.OrderDtl.ProdCode} = "SPA"
or {BAQReportResult.OrderDtl.ProdCode} = "SUB"
or {BAQReportResult.OrderDtl.ProdCode} = "TRE"
or {BAQReportResult.OrderDtl.ProdCode} = "TURN"
else if {BAQReportParameter.Check03} = TRUE
then {BAQReportResult.OrderDtl.ProdCode} = "PDN"
or {BAQReportResult.OrderDtl.ProdCode} = "PDR"
I essentially want to apply the above condtions to the following
Code:
WhilePrintingRecords;
NumberVar Total;
Total:= Total+{@OrdTotal}
Thanks in advance for any help, and I apologize if I've missed any important details.