G
Guest
I have a field in my Access database that I do not want duplicated, so I set
it in the table properties not to allow duplicates. It works great for not
allowing duplicate records.
The problem is that the form people access this table through does not warn
them when they have duplicated the project number. It is a additions-only
form designed for the entry of a single record of entry, and then the user
presses 'done'. If the field in question is a duplicate, the form just
closes like normal, but doesn't insert the record. No warning, no nothing.
It's as if the OnError event isn't firing.
I have been using the docmd.setwarnings(false) command in VBA in certain
places, but I put docmd.setwarnings(true) directly above the exit command,
and still no warning. Why are no warning messages showing up?
Any ideas?
Dustin Ventin
it in the table properties not to allow duplicates. It works great for not
allowing duplicate records.
The problem is that the form people access this table through does not warn
them when they have duplicated the project number. It is a additions-only
form designed for the entry of a single record of entry, and then the user
presses 'done'. If the field in question is a duplicate, the form just
closes like normal, but doesn't insert the record. No warning, no nothing.
It's as if the OnError event isn't firing.
I have been using the docmd.setwarnings(false) command in VBA in certain
places, but I put docmd.setwarnings(true) directly above the exit command,
and still no warning. Why are no warning messages showing up?
Any ideas?
Dustin Ventin