H
Harmannus
Hallo,
I have a employee form with a subform containing cash register amounts (key
is employeeID). How can automatically calculate a total amount in the after
update event of that subform through a update query (see code below): now i
get a error when goning to the next employee: i get a messages asking for
the cashregisterID.
fsubCashregister after update event:
Private Sub Form_AfterUpdate()
Dim stDocName As String
stDocName = "qupdAmount"
DoCmd.OpenQuery stDocName, acNormal, acEdit
End Sub
in the query qupdAmount i calculate the total amount field based on
[Forms]![fsubCashregister]![CashregisterID]
Any suggestion on how to correct this?
Regards,
Harmannus
I have a employee form with a subform containing cash register amounts (key
is employeeID). How can automatically calculate a total amount in the after
update event of that subform through a update query (see code below): now i
get a error when goning to the next employee: i get a messages asking for
the cashregisterID.
fsubCashregister after update event:
Private Sub Form_AfterUpdate()
Dim stDocName As String
stDocName = "qupdAmount"
DoCmd.OpenQuery stDocName, acNormal, acEdit
End Sub
in the query qupdAmount i calculate the total amount field based on
[Forms]![fsubCashregister]![CashregisterID]
Any suggestion on how to correct this?
Regards,
Harmannus