G
Geoff
I'm using the SUM command in an unbound text box, in the footer of a
subform, to get the total of numbers in a field on that form (which is a
continuous one by the way). That works fine, but the SUM command is
referencing a field in the query that the subform is based on.
I now want to put another SUM command to total up another column, but I want
to reference the name of the control it's totalling up rather than
referencing the query. I have to do this because the formula for the control
source of this control gets some of it's data from the main form. This just
gives me #error though. In fact when I tried using the name of the control
rather than the query's field name in the other text box, that stopped
working.
Surely it must be possible to use the SUM command by referencing the control
name, and it's just a case of understanding how to reference the control? I
hope so anyway. IF it isn't possible though, I would need to put a formula
in the query that references a control on the main form. How would I do that
please?
Thanks for any help,
Geoff.
subform, to get the total of numbers in a field on that form (which is a
continuous one by the way). That works fine, but the SUM command is
referencing a field in the query that the subform is based on.
I now want to put another SUM command to total up another column, but I want
to reference the name of the control it's totalling up rather than
referencing the query. I have to do this because the formula for the control
source of this control gets some of it's data from the main form. This just
gives me #error though. In fact when I tried using the name of the control
rather than the query's field name in the other text box, that stopped
working.
Surely it must be possible to use the SUM command by referencing the control
name, and it's just a case of understanding how to reference the control? I
hope so anyway. IF it isn't possible though, I would need to put a formula
in the query that references a control on the main form. How would I do that
please?
Thanks for any help,
Geoff.