Problem with subform data

mfaisal.ce

Member
Local time
Today, 13:48
Joined
Dec 21, 2020
Messages
76
Hello Friends,

i have 02 subforms and i want to update Form2 on update value in Form1,

1. FrmSales_Detail ( Field: SubTotal)
2. FrmPayment_Detail (Field: GTotal)

What i need is, when i enter data in subtotal, it will reflect to New Row in GTotal in FrmPayment_detail ....

Kindly guide,
1610908147003.png
 
First. Is there a reason you would enter data manually into a subtotal field? Normally that would be calculated.
 
the fact is a new row means the record does not exist so you would need to create one. And you should not be storing calculated values of this nature anyway.

Not enough information to even suggest a possible solution. I also do not see a field called 'subtotal' but would guess it is the 11000 on detail? salesdetail? subform
 
First. Is there a reason you would enter data manually into a subtotal field? Normally that would be calculated.
bro, that was just example... basically, on each new entry in FrmSales_Detail, i need to update GTotal.......
 
the fact is a new row means the record does not exist so you would need to create one. And you should not be storing calculated values of this nature anyway.

Not enough information to even suggest a possible solution. I also do not see a field called 'subtotal' but would guess it is the 11000 on detail? salesdetail? subform
yes, this is 11000 on FrmSales_detail and i want to show in GTotal at FrmPayment_Detail
 
bro, that was just example... basically, on each new entry in FrmSales_Detail, i need to update GTotal.......
Pretty crappy example then? :devilish:

Why not base the totals subform on a query and requery that?
 
how about if you use the below code on after update even on the Total field on subform1

Code:
Forms!MainformName.FrmPayment_Detail.form.Gtotal = me.Total
 
how about if you use the below code on after update even on the Total field on subform1

Code:
Forms!MainformName.FrmPayment_Detail.form.Gtotal = me.Total
How do you match to srNo?
 

Users who are viewing this thread

Back
Top Bottom