最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

duplicates - Unique Combination of Fields in MS Access - Stack Overflow

programmeradmin1浏览0评论

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?

发布评论

评论列表(0)

  1. 暂无评论