T
Thomas Winkler
Hi,
i am using AccessXP and have problems with calculating sums in a subform
using parametert from a main form.
The subform contains some records having the fields A and B.
The main form contains the fields C and D.
All the fields contain numeric values.
The following combination works:
=Sum(A*B)
=Parent!C
=Parent!D
The desired combination, that doesn't work:
=Sum(A*B*IIf(Parent!C=1;1;(1+Parent!D))
It seems as if inside the sum-function the fields from the main form cannot
be referred.
Another workaround, that did not work too, was to put new fields, containing
the params from main form, to the subform and to refer to those in the sum
function.
Has anyone an idea how to fix the problem?
Thomas
i am using AccessXP and have problems with calculating sums in a subform
using parametert from a main form.
The subform contains some records having the fields A and B.
The main form contains the fields C and D.
All the fields contain numeric values.
The following combination works:
=Sum(A*B)
=Parent!C
=Parent!D
The desired combination, that doesn't work:
=Sum(A*B*IIf(Parent!C=1;1;(1+Parent!D))
It seems as if inside the sum-function the fields from the main form cannot
be referred.
Another workaround, that did not work too, was to put new fields, containing
the params from main form, to the subform and to refer to those in the sum
function.
Has anyone an idea how to fix the problem?
Thomas