I am using the code below to update fields values based on the after update entry in a field. However when I try to run it it wants to update all records in the table and not just the specific CardID. Any ideas on what I am doing wrong?
DoCmd.RunSQL "Update tblCards set intCardWantQOH=intCardWantQOH-" & Nz(hold_WLqty, 0) & " where pkeyCardID=""" & Me.pkeyCardID & """"
DoCmd.RunSQL "Update tblCards set intCardWantQOH=intCardHaveQOH+" & Nz(Me.cmdWantQOHPlus, 0) & " where pkeyCardID=""" & Me.pkeyCardID & """"
Me.intCardWantQOH.Requery
DoCmd.RunSQL "Update tblCards set intCardWantQOH=intCardWantQOH-" & Nz(hold_WLqty, 0) & " where pkeyCardID=""" & Me.pkeyCardID & """"
DoCmd.RunSQL "Update tblCards set intCardWantQOH=intCardHaveQOH+" & Nz(Me.cmdWantQOHPlus, 0) & " where pkeyCardID=""" & Me.pkeyCardID & """"
Me.intCardWantQOH.Requery