K
Ken Hudson
I have a form with a sub form.
I have an object on the main form that is bound to the Ward_ID field in a
table. The object's name is txt_Ward_ID.
I have another text box ("Totals") on the form that I want to populate using
a function. The function does a sum of data entered through the sub-form.
When I use:
=fnTtlCost(Forms!frmWards!Ward_ID)
the "Totals" text box object on the main form automatically updates whenever
the source data on the sub form changes.
For some reason I thought that I could or had to reference the objects's
name in the function, not the bound field name, when I used the function.
=fnTtlCost(Forms!frmWards!txt.Ward_ID)
But the above does not automatically update the "Totals" box as data is
changed on the form.
Am I correct that the way to get the "Totals" to change dynamically is to
use the bound object's name?
I have an object on the main form that is bound to the Ward_ID field in a
table. The object's name is txt_Ward_ID.
I have another text box ("Totals") on the form that I want to populate using
a function. The function does a sum of data entered through the sub-form.
When I use:
=fnTtlCost(Forms!frmWards!Ward_ID)
the "Totals" text box object on the main form automatically updates whenever
the source data on the sub form changes.
For some reason I thought that I could or had to reference the objects's
name in the function, not the bound field name, when I used the function.
=fnTtlCost(Forms!frmWards!txt.Ward_ID)
But the above does not automatically update the "Totals" box as data is
changed on the form.
Am I correct that the way to get the "Totals" to change dynamically is to
use the bound object's name?