theinviter
Registered User.
- Local time
- Today, 11:01
- Joined
- Aug 14, 2014
- Messages
- 268
Dears;
i need help,
i have created Inventory Database, as i want to track the balance after filed update,
i tried the below code but the issue is that, it does not include the current record as it calculate previous record.
Private Sub Qnty_Out_AfterUpdate()
[Final Balance] = (Nz(DSum("[Qnty IN]", "[Table1 Query1]", "[Linked _ID] =" & Me.Linked_ID), 0) + Nz(DSum("[Balance1]", "[Table1 Query1]", "[Linked _ID] =" & Me.Linked_ID), 0)) - Nz(DSum("[Qnty Out]", "[Table1 Query1]", "[Linked _ID] =" & Me.Linked_ID), 0)
is there any way to do it instead of Dsum or any other idea.
Or how t calculate immediately after filed update.
thanks
i need help,
i have created Inventory Database, as i want to track the balance after filed update,
i tried the below code but the issue is that, it does not include the current record as it calculate previous record.
Private Sub Qnty_Out_AfterUpdate()
[Final Balance] = (Nz(DSum("[Qnty IN]", "[Table1 Query1]", "[Linked _ID] =" & Me.Linked_ID), 0) + Nz(DSum("[Balance1]", "[Table1 Query1]", "[Linked _ID] =" & Me.Linked_ID), 0)) - Nz(DSum("[Qnty Out]", "[Table1 Query1]", "[Linked _ID] =" & Me.Linked_ID), 0)
is there any way to do it instead of Dsum or any other idea.
Or how t calculate immediately after filed update.
thanks