Problem with subform data (1 Viewer)

mfaisal.ce

Member
Local time
Today, 16:14
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
 

MajP

You've got your good things, and you've got mine.
Local time
Today, 09:14
Joined
May 21, 2018
Messages
8,529
First. Is there a reason you would enter data manually into a subtotal field? Normally that would be calculated.
 

CJ_London

Super Moderator
Staff member
Local time
Today, 14:14
Joined
Feb 19, 2013
Messages
16,616
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
 

mfaisal.ce

Member
Local time
Today, 16:14
Joined
Dec 21, 2020
Messages
76
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.......
 

mfaisal.ce

Member
Local time
Today, 16:14
Joined
Dec 21, 2020
Messages
76
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
 

Gasman

Enthusiastic Amateur
Local time
Today, 14:14
Joined
Sep 21, 2011
Messages
14,311
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?
 

shokly

New member
Local time
Today, 06:14
Joined
Jan 13, 2021
Messages
7
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
 

mfaisal.ce

Member
Local time
Today, 16:14
Joined
Dec 21, 2020
Messages
76
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
Its quite helpful bro... Thanks
 

Gasman

Enthusiastic Amateur
Local time
Today, 14:14
Joined
Sep 21, 2011
Messages
14,311
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

Top Bottom