i am trying to pass sums from two different subreports up to the main report level and then add them to a value in the main report which is a sum within a group. i can get the value up to the main report using the following in the subreports (other uses different variable in same formula)
whileprintingrecords;
shared currencyvar sum_curr_bid := Sum ({workord.wo_curr_bd}, {@lpst_to_num})
then i put a new formula (sum_curr_bid + sum_curr_bid2) in the main rpt details section that sums the two subreport values ok except that is shows up in the next group rather than in the current one, and i cannot get it in the correct group, or cannot reset it to 0 or blank by putting a formula in the header or footers of the main report group as suggested in one of my books.
when i try
whileprintingrecords;
shared currencyvar sum_curr_bid := 0
or
whileprintingrecords;
shared currencyvar sum_curr_bid;
sum_curr_bid = 0
i get an error msg stating that the value must be boolean. if it is a currency variable why would it be boolean?
any help is appreciated.
tks, mike
whileprintingrecords;
shared currencyvar sum_curr_bid := Sum ({workord.wo_curr_bd}, {@lpst_to_num})
then i put a new formula (sum_curr_bid + sum_curr_bid2) in the main rpt details section that sums the two subreport values ok except that is shows up in the next group rather than in the current one, and i cannot get it in the correct group, or cannot reset it to 0 or blank by putting a formula in the header or footers of the main report group as suggested in one of my books.
when i try
whileprintingrecords;
shared currencyvar sum_curr_bid := 0
or
whileprintingrecords;
shared currencyvar sum_curr_bid;
sum_curr_bid = 0
i get an error msg stating that the value must be boolean. if it is a currency variable why would it be boolean?
any help is appreciated.
tks, mike