Problem with Crystal Report SUM
Visual Basic
1
Posts
1
Posters
0
Views
1
Watching
-
Hello, I have a main report and a subreport, since I want to have total from subreport displayed in the main report, I create a shared currency variable. The problem is if the datasource return empty data. I used arraylist for the datasource, because the arraylist length is zero, the datasource is also become empty. When I tried to print, the report was showing error: a number of field or currency amount field is required here. My formula is like this: Shared currencyVar saledetail_sumtotal := Sum({PoS_DataSource_clsRptSaleDetail.saledetail_total}) I tried to use If IsNull but the result is just the same Can somebody help me? :doh:
- No Signature Available -