S
Samantha Rawson via AccessMonster.com
My code is as follows:
Private Sub NoOrdered_AfterUpdate()
DoCmd.OpenForm "frm_tu_rem", acNormal
DoCmd.GoToRecord , , acFirst
Form_frm_tu_rem.Turkeys_Remaining.Value = Form_frm_tu_rem.Turkeys_Remaining.Value - NoOrdered.Value
DoCmd.Close acForm, "frm_tu_rem"
End Sub
frm_tu_rem stores the total number of items remaining, in one record. After the NoOrdered is updated, it opens this form and takes away the value that the user has inputted in NoOrdered. It then closes the form. I cannot see where I go wrong, yet I get this message:
'Member already exists in an object module from which this object module derives'
Can anyone help please?!?!
Private Sub NoOrdered_AfterUpdate()
DoCmd.OpenForm "frm_tu_rem", acNormal
DoCmd.GoToRecord , , acFirst
Form_frm_tu_rem.Turkeys_Remaining.Value = Form_frm_tu_rem.Turkeys_Remaining.Value - NoOrdered.Value
DoCmd.Close acForm, "frm_tu_rem"
End Sub
frm_tu_rem stores the total number of items remaining, in one record. After the NoOrdered is updated, it opens this form and takes away the value that the user has inputted in NoOrdered. It then closes the form. I cannot see where I go wrong, yet I get this message:
'Member already exists in an object module from which this object module derives'
Can anyone help please?!?!