admin管理员组

文章数量:1344462

I'm trying to make a table in Microsoft Access that doesn't allow duplicate values in multiple fields. I was using concatenation and sorting to do this in Excel. I tried a combined primary key, but it only catches duplicates when the fields have been entered the same way instead of in any combination and I don't really want the combined values to be my primary key.

Sample Table

I want record 3 to receive an error message about creating a duplicate value when trying to save the record, since it has the same values as record 2.

Is this something that can be done in a table, or is it necessary to make a query/form?

本文标签: duplicatesUnique Combination of Fields in MS AccessStack Overflow