How to create a Check Duplicate Macro?
tblProperty contains the following fields
PropertyID (autonum)
BldgID
Block
Floor
Flat
I would like to make sure the combination of BldgID, Block, Floor, Flat won’t be duplicated.
In the Property Sheet of formProperty, I attach ChkDuplicate macro to the Before Update event.
How to write such macro?
If an existing record is found identical to the newly entered textboxes (controls)–BldgID, Block, Floor, and Flat, how can I stop adding the new record into the table? The entire Action Macros list don’t the command to abort the record update.
Armstrong