Good morning.
I’ve added a calculated field to the subform – it sums the total from a field in the subform and works correctly.
I want to display this in the main form. I’ve used a text box there, with the formula
=[Forms]![name of subform]![name of text box in subform]!
I get the #Name? error – however it gives the correct answer if I open the database, open the subform separately, then open the name form.
I think I am missing something in my understanding of forms and subforms. Can anyone give me a clue?
(Notes: form and subform are based on tables, the two tables are linked one-to-many with referential integrity enforced. The ‘Link Master Fields’ and ‘Link Child Fields’ in the property sheet of the subform are correctly completed with the correct primary/foreign key combination. The forms were created using wizards.)
Mnay thanks
MsT
I’ve added a calculated field to the subform – it sums the total from a field in the subform and works correctly.
I want to display this in the main form. I’ve used a text box there, with the formula
=[Forms]![name of subform]![name of text box in subform]!
I get the #Name? error – however it gives the correct answer if I open the database, open the subform separately, then open the name form.
I think I am missing something in my understanding of forms and subforms. Can anyone give me a clue?
(Notes: form and subform are based on tables, the two tables are linked one-to-many with referential integrity enforced. The ‘Link Master Fields’ and ‘Link Child Fields’ in the property sheet of the subform are correctly completed with the correct primary/foreign key combination. The forms were created using wizards.)
Mnay thanks
MsT