Hi Samantha,
Take a look at the following KB article:
ACC2000: Error Message: Member Already Exists in an Object Module from Which
This Object Module Derives
http://support.microsoft.com/default...b;en-us;279124
If this doesn't work make sure that in the property sheet for the
AfterUpdate event the text "[Event Procedure]" is in the property. You may
even want to copy the body of the procedure to your clipboard, delete the
procedure itself and readd it by letting Access rebuild the procedure header
and footer. Then copy the body of the procedure back in.
Also make sure that you don't have this procedure duplicated in the class
module.
--
Sandra Daigle [Microsoft Access MVP]
Please post all replies to the newsgroup.
Samantha Rawson via AccessMonster.com wrote:
> 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?!?!