Hi,
I have searched various solutions from this forum, but am still not getting the result I am after.
I have a form detailing sales (frmSales). Within this form there are two subforms (subfrmSalesItemsForSubfrm) and (frmsubfrmCalcCommSunnByClient). The first offers options to select products sold. The second calculates a total amount sold excluding certain products.
What I would like to happen is once subfrmSalesItemsForSubfrm is updated, frmsubfrmCalcCommSunnByClient is updated to to reflect a new total.
I understand I should be using requry rather than refresh. I have tried this on AfterUpdate on subfrmSalesItemsForSubfrm and in various other place on the main form and the subforms.
All fields in frmsubfrmCalcCommSunnByClient are locked and the user cannot access these.
The code I have been using has been:
Me.Form![frmSales]![frmsubfrmCalcCommSunnByClient].Requery
or
Me.frmsubfrmCalcCommSunnByClient.Requery
If someone can provide some guidance on where I am going wrong, it would be appreciated.
I have searched various solutions from this forum, but am still not getting the result I am after.
I have a form detailing sales (frmSales). Within this form there are two subforms (subfrmSalesItemsForSubfrm) and (frmsubfrmCalcCommSunnByClient). The first offers options to select products sold. The second calculates a total amount sold excluding certain products.
What I would like to happen is once subfrmSalesItemsForSubfrm is updated, frmsubfrmCalcCommSunnByClient is updated to to reflect a new total.
I understand I should be using requry rather than refresh. I have tried this on AfterUpdate on subfrmSalesItemsForSubfrm and in various other place on the main form and the subforms.
All fields in frmsubfrmCalcCommSunnByClient are locked and the user cannot access these.
The code I have been using has been:
Me.Form![frmSales]![frmsubfrmCalcCommSunnByClient].Requery
or
Me.frmsubfrmCalcCommSunnByClient.Requery
If someone can provide some guidance on where I am going wrong, it would be appreciated.