AutoNumber在Access 2010中创建重复的数字 [英] AutoNumber creating duplicate numbers in Access 2010

查看:138
本文介绍了AutoNumber在Access 2010中创建重复的数字的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Access 2010数据库,其中包含一个包含数据类型为Autonumber的列的表。 "自动编号"列偶尔会创建具有相同值的行,即字段中包含2行的两行。  应用程序具有多个
并发用户,这些用户可以同时向表中添加行。 

I have an Access 2010 database that has a table with a column that has a data type of Autonumber. The Autonumber column occasionally creates rows with the same value, i.e. two rows with 2 in the field.  The application has multiple concurrent users who could be adding rows to the table at the same time. 

我需要找出为什么要创建重复值以及可以采取哪些措施来确保在创建新行时创建唯一值。

I need to find out why the duplicate values are being created and what can be done to insure a unique value is created whenever a new row is created.

Brad C. Parris高级IT经理定制解决方案

Brad C. Parris Sr. IT Manager Custom Solutions

推荐答案

该字段是主键?

您是否将索引属性设置为是(不重复)

该领域的目的是什么? 也许将其切换到Number字段并通过使用DMAX()分配号码可以消除这个问题。

What is the purpose of the field in question?  Perhaps switching it to a Number field and assigning the number through the use of DMAX() could eliminate this issue.


这篇关于AutoNumber在Access 2010中创建重复的数字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆