jazminecat
Programmer
I have a form with three subforms. each of these subforms contains charges to an account. Not all records have charges on all subforms, though. So some records will have no charges at all, some will have charges from one, two, or all three. It varies.
I have a text field on the main form into which I want to sum the total of all charges for any given record. It is an unbound text box, and has this code in it's control source:
where QryCommissary subform is one form, QryBookingFees subform is the second form, and QryDental subform1 is the third form.
When I load the form I get #error on the text field, no matter what record I am on.
Any thoughts? I'm not averse to handling this field using vba instead, i'm just stuck on how.
thanks!
I have a text field on the main form into which I want to sum the total of all charges for any given record. It is an unbound text box, and has this code in it's control source:
Code:
=[QryCommissary subform].Form!SumOfAmount+[QryBookingFees subform].Form!Amount+[QryDental subform1].Form!Amount
where QryCommissary subform is one form, QryBookingFees subform is the second form, and QryDental subform1 is the third form.
When I load the form I get #error on the text field, no matter what record I am on.
Any thoughts? I'm not averse to handling this field using vba instead, i'm just stuck on how.
thanks!