Since nobody is answering my last question I'll have to make a new topic. The problem is I don't know how to properly use variables. This is what I have:
In the main report I have a new formula wich contains this:
Shared NumberVar totaal_order := 0;
Shared NumberVar totaal_inkopen := 0;
Shared NumberVar totaal_uren_kost := 0;
Shared NumberVar totaal_uren_bedrag := 0;
Shared NumberVar totaal_addkosten := 0;
Each of these are Sums in a subreport. Now if I go to a subreport, lets's say Order, and I paste the code in the existing formula wich makes:
Shared NumberVar totaal_order := Ceiling (({FOFFVOLG.OVAANTAL} * {FOFFVOLG.OVBEDRAG})-{FOFFVOLG.OVKORTING},0.01);
If I go to the preview window then it gives back the error:
A summary has been specified on a non-recurring field.
Details @bedrag-korting
Now bedrag-korting is the formula name in the subreport Order. Could you help me with this? Because I don't know what I'm doing wrong...

Edited by w00tNL - 07 Mar 2008 at 2:16am