Re: me.undo
- From: "Wayne Morgan" <comprev_gothroughthenewsgroup@xxxxxxxxxxx>
- Date: Wed, 31 Aug 2005 12:08:48 -0500
I looked at the code in the file. It appears that after entering the
duplicate record, you are moving to the next new record by clicking a button
you've added to the form. The code in this button uses
DoCmd.GoToRecord,,acNewRec. Yet, you've just canceled the update and told
the form to go to the duplicate record in the BeforeUpdate event. It won't
do both, hence the error. I added a "flag" variable to catch this situation
and skip the attempt to go to the new record.
--
Wayne Morgan
MS Access MVP
.
- Follow-Ups:
- Re: me.undo
- From: Trini Gal
- Re: me.undo
- Prev by Date: RE: Create one-to-one Relationship
- Next by Date: Re: Check version of access
- Previous by thread: VBA Filtering a subform on a page from a cbobox in subform header
- Next by thread: Re: me.undo
- Index(es):
Relevant Pages
|