Justin.ITPro
Registered User.
- Local time
- Yesterday, 19:54
- Joined
- May 23, 2013
- Messages
- 10
I am trying to calculate the total [QtyProd] of a filtered subform and have the total update on the main form. I can get the total to calculate for the whole table but when I filter the table it doesn't update. I am probably missing something simple... let me know if you need any additional information.
I am filtering the subform like this and it is based off a query:
The code inside my QtyTotal box is
I am filtering the subform like this and it is based off a query:
Code:
Private Sub btnSKUQuery_Click()
Me.subForm.Form.Filter = "SKU = [txtSKU]"
Me.subForm.Form.FilterOn = True
Me.subForm.Form.Requery
End Sub
The code inside my QtyTotal box is
Code:
=Sum([QtyProd])