hello dear hope you are good I want to add the total bill amount in the header. How can I do it?

moin555

New member
Local time
Today, 23:04
Joined
Feb 6, 2025
Messages
11
1741333995496.png
 
Perhaps the same expression that you have used in the Footer would work in the Header

=Sum([BillAmount])
 
Control Source:
Code:
=[Form]![Invoice_Subform]![txtTotalBillAmount]
 
Last edited:
I would change the name of Text25 to something that has some meaning E.g. txtInvTotal
 
Code:
=[Form]![CreditInvoices_Subform]![Text25]

and also on Property->Format->Format: Standard
to show the commas.
 
If #9 doesn't work using YOUR control and form names, then you can "push" the value rather than "pull" it. Put your code into the After update event of the subform.

Me.txtTotalBillAmt.Recalc
Me.Parent!txtTotalBillAmt = Me.txtTotalBillAmt
 

Users who are viewing this thread

Back
Top Bottom