
Main report value<-pass/return->subReport values (ActiveX Designer Component 6.0)
I haven't used the ActiveXDesigner but here is how to do it in Native
Crystal and I assume that the ActiveXDesigner is similar.
First in the main report create a variable in a formula
StoreNumberVar("CommissionValue", 0)
In the subreport in a formula
StoreNumberVar("CommissionValue", Numeric value)
Now retreive that value from the main report with
FetchNumberVar("CommissionValue")
Look up StoreNumberVar and FetchNumberVar in help.
If you are passing a field value (may also be true for calculated values I
just haven't done that yet) while editing the main report select from the
main menu Edit/Subreport links and you will be able to pass the field values
directly to the subreport. Crystal assume that you will want this in the
selection formula of the subreport so if you don't you will need to edit the
subreports record selection criteria.