shared numbervar bb; if isnull({tbl1.sumbed}) and isnull({tbl1.sumbes}) then 0 else bb := bb + ({tbl1.sumbed}-{tbl1.sumbes});
tbl1
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)