What is the best property to add DSum to a control to?
By that I mean, I need to add fields up as theyre being entered.
I have this so far:
Calc will find the field Price from the table tblOrderDetails where the DescriptionID match... then add them up... simple... its jsut the enttries from tblOrderDetails are still to be entered.
I know Before update doesnt work, but I've tried afterupdate as well but nothing else on the list seemed to be what I was after?
By that I mean, I need to add fields up as theyre being entered.
I have this so far:
Code:
Private Sub Price[B][COLOR=Blue]_BeforeUpdate(Cancel As Integer)[/COLOR][/B]
Dim Loc As String
Dim Calc As String
Loc = Me![Wizard step 2 subform order details].Form![DescriptionID]
Calc = DSum("[Price]", "[tblOrderDetails]", "[DescriptionID]=" & Loc)
End Sub
Calc will find the field Price from the table tblOrderDetails where the DescriptionID match... then add them up... simple... its jsut the enttries from tblOrderDetails are still to be entered.
I know Before update doesnt work, but I've tried afterupdate as well but nothing else on the list seemed to be what I was after?