Hi, I am new to Crystal, though have worked with SQL for some time. I guess this is a simple problem but I'm confused by all the different tools avaialble in Crystal...
I want one row on a report for each product (table A.part_no, tableA.description, tableA.qty_available etc). I also want another 2 fields for each row :
sum(tableB.future_demand_qty) where tableB.part_no=tableA.part_no
and
sum(tableC.qty_issued) where tableC.part_no=tableA.part_no and tableC.type (is of a certain type) and tableC.transaction_date (is between parameterised dates)
The problem is that in either of the tables B and C there may be no rows that satisfy the condition. I still need the fields of table A displayed, and ZERO for the table B and C sums.
I have looked at formulas, sub-reports, sub-totals etc but need some help to point me in the right direction. I don't know how to do the Summing and the conditional testing and the sum=0 if none found! All suggestions gratefully recevied, Thanks, Jan.
I want one row on a report for each product (table A.part_no, tableA.description, tableA.qty_available etc). I also want another 2 fields for each row :
sum(tableB.future_demand_qty) where tableB.part_no=tableA.part_no
and
sum(tableC.qty_issued) where tableC.part_no=tableA.part_no and tableC.type (is of a certain type) and tableC.transaction_date (is between parameterised dates)
The problem is that in either of the tables B and C there may be no rows that satisfy the condition. I still need the fields of table A displayed, and ZERO for the table B and C sums.
I have looked at formulas, sub-reports, sub-totals etc but need some help to point me in the right direction. I don't know how to do the Summing and the conditional testing and the sum=0 if none found! All suggestions gratefully recevied, Thanks, Jan.