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, 17:46
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:
try:

=[CreditInvoices_Subform].[Form]![Text25]
 
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
 
Controls don't have Recalc method, only Forms.
 
I meant .Refresh. You need to force the control value update to happen before you can push the value to the main form.
 

Users who are viewing this thread

Back
Top Bottom