H
hughess7
Hi all
I have a routine on the afterupdate of a field which checks for duplicate
data and warns the user if found. In case the user still tries to proceded I
also have the same code (but with cancel = true added) on the beforeupdate of
the form to prevent a save taking place. The only problem is when the
navigation buttons (which I have added manually to my form) are used it
produces an error still eg can not go to specified record.
What is the best way to deal with this, off the top of my head the only
thing I can think of is to try putting the docmd.setwarnings false statement
before the move record command but I suspect there is a better way?
Thanks in advance for any help.
Sue
I have a routine on the afterupdate of a field which checks for duplicate
data and warns the user if found. In case the user still tries to proceded I
also have the same code (but with cancel = true added) on the beforeupdate of
the form to prevent a save taking place. The only problem is when the
navigation buttons (which I have added manually to my form) are used it
produces an error still eg can not go to specified record.
What is the best way to deal with this, off the top of my head the only
thing I can think of is to try putting the docmd.setwarnings false statement
before the move record command but I suspect there is a better way?
Thanks in advance for any help.
Sue