R
Rick Vooys
Good Morning,
I have been using me.dirty = false to force a save. It seems to work well,
but I have a form, and after I am sure I have entered a record I want to add
records to another table. So I enter code into the AfterUpdate Event, but so
I don't add the records unless I ensure the record has been added, I have
code in the Before Update event. I assumed when I used the Me.Dirty = false
the before update event would fire and then the After update would fire. If
the insert doesn't crash it all works good.
The specific problem I am having is when the user adds a record and that PK
is already used, I want to in the Before update pop up a message telling them
that Unit ID is taken please try again.
Thanks
I have been using me.dirty = false to force a save. It seems to work well,
but I have a form, and after I am sure I have entered a record I want to add
records to another table. So I enter code into the AfterUpdate Event, but so
I don't add the records unless I ensure the record has been added, I have
code in the Before Update event. I assumed when I used the Me.Dirty = false
the before update event would fire and then the After update would fire. If
the insert doesn't crash it all works good.
The specific problem I am having is when the user adds a record and that PK
is already used, I want to in the Before update pop up a message telling them
that Unit ID is taken please try again.
Thanks