bob fitz AWF VIP Local time Today, 13:46 Joined May 23, 2011 Messages 4,806 Mar 7, 2025 #2 Perhaps the same expression that you have used in the Footer would work in the Header =Sum([BillAmount])
Perhaps the same expression that you have used in the Footer would work in the Header =Sum([BillAmount])
C CJ_London Super Moderator Staff member Local time Today, 13:46 Joined Feb 19, 2013 Messages 17,358 Mar 7, 2025 #3 Try =subformname.form.controlname Change names to suit. You might find this link useful Forms: Refer to Form and Subform properties and controls
Try =subformname.form.controlname Change names to suit. You might find this link useful Forms: Refer to Form and Subform properties and controls
arnelgp ..forever waiting... waiting for jellybean! Local time Today, 20:46 Joined May 7, 2009 Messages 20,155 Mar 7, 2025 #4 Control Source: Code: =[Form]![Invoice_Subform]![txtTotalBillAmount] Last edited: Mar 7, 2025
M moin555 New member Local time Today, 17:46 Joined Feb 6, 2025 Messages 11 Mar 7, 2025 #5 arnelgp said: Control Source: Code: =[Form]![Invoice_Subform]![txtTotalBillAmount] Click to expand... not working
arnelgp said: Control Source: Code: =[Form]![Invoice_Subform]![txtTotalBillAmount] Click to expand... not working
M moin555 New member Local time Today, 17:46 Joined Feb 6, 2025 Messages 11 Mar 7, 2025 #6 moin555 said: not working kindly check Click to expand... Attachments subform2 - Copy.accdb subform2 - Copy.accdb 1.1 MB · Views: 22
M moin555 New member Local time Today, 17:46 Joined Feb 6, 2025 Messages 11 Mar 7, 2025 #7 bob fitz said: Perhaps the same expression that you have used in the Footer would work in the Header =Sum([BillAmount]) Click to expand... not wokring sir
bob fitz said: Perhaps the same expression that you have used in the Footer would work in the Header =Sum([BillAmount]) Click to expand... not wokring sir
bob fitz AWF VIP Local time Today, 13:46 Joined May 23, 2011 Messages 4,806 Mar 7, 2025 #8 try: =[CreditInvoices_Subform].[Form]![Text25]
bob fitz AWF VIP Local time Today, 13:46 Joined May 23, 2011 Messages 4,806 Mar 7, 2025 #9 I would change the name of Text25 to something that has some meaning E.g. txtInvTotal
M moin555 New member Local time Today, 17:46 Joined Feb 6, 2025 Messages 11 Mar 7, 2025 #10 bob fitz said: try: =[CreditInvoices_Subform].[Form]![Text25] kidly check file shared Click to expand... Attachments subform2.accdb subform2.accdb 1.1 MB · Views: 18
bob fitz said: try: =[CreditInvoices_Subform].[Form]![Text25] kidly check file shared Click to expand...
bob fitz AWF VIP Local time Today, 13:46 Joined May 23, 2011 Messages 4,806 Mar 7, 2025 #11 Try this: Attachments subform2 Bob01.accdb subform2 Bob01.accdb 484 KB · Views: 22
M moin555 New member Local time Today, 17:46 Joined Feb 6, 2025 Messages 11 Mar 7, 2025 #12 bob fitz said: Try this: Click to expand... Thank u sir for your kind help . I am Trying on it
arnelgp ..forever waiting... waiting for jellybean! Local time Today, 20:46 Joined May 7, 2009 Messages 20,155 Mar 7, 2025 #13 Code: =[Form]![CreditInvoices_Subform]![Text25] and also on Property->Format->Format: Standard to show the commas.
Code: =[Form]![CreditInvoices_Subform]![Text25] and also on Property->Format->Format: Standard to show the commas.
P Pat Hartman Super Moderator Staff member Local time Today, 08:46 Joined Feb 19, 2002 Messages 46,655 Mar 7, 2025 #14 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
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
arnelgp ..forever waiting... waiting for jellybean! Local time Today, 20:46 Joined May 7, 2009 Messages 20,155 Mar 14, 2025 #15 Controls don't have Recalc method, only Forms.
P Pat Hartman Super Moderator Staff member Local time Today, 08:46 Joined Feb 19, 2002 Messages 46,655 Mar 14, 2025 #16 I meant .Refresh. You need to force the control value update to happen before you can push the value to the main form.
I meant .Refresh. You need to force the control value update to happen before you can push the value to the main form.