I search a few forums and how to prevent a user from entering duplicate item. i have a main table called MASTER_TBL. MASTER_TBL has a DATE, ORD_TYP, LOCATION fields. I would like to prevent users when they enter the same MASTER_ID,DATE AND ORD_TYP AND LOCATION, they will get a msg box notifying that it is already entered, which would then delete the record.
i listed the fields and data type, i saw depending on the data type it effects what code to use. The code i tired i kept getting "mismatch error"
MASTER_ID ---AUTONUMBER ---PRIMARY KEY
DATE---------DATE/TIME
ORD_TYP-----NUMBER - its a lookup field that gets info from [ord_typ_tbl]
LOCATION----SHORT TEXT
i listed the fields and data type, i saw depending on the data type it effects what code to use. The code i tired i kept getting "mismatch error"
MASTER_ID ---AUTONUMBER ---PRIMARY KEY
DATE---------DATE/TIME
ORD_TYP-----NUMBER - its a lookup field that gets info from [ord_typ_tbl]
LOCATION----SHORT TEXT