L
Latoya
I have a table that uses an autonumber as the primary key.
On two separate instances when trying to insert a new
record into this table through a form, I've gotten a key
violation error. When I went to the table to try to insert
information directly, I noticed that the table's
autonumber functionality was assigning a number that had
already been generated in the table. For example, the last
key value in the table is "412", but the table is
assigning "326" as the next primary key for the new row in
the table. However, "326" has already been assigned as a
primary key.
Does anybody know how and why this could be happening??? I
have been working with Access for about 7 years or so and
I'm floored by this problem. I have never seen this
before. I have the database set-up for a multi-user
environment, which I've done several times in the past.
The first time this problem occurred I created a duplicate
copy of the table and deleted the old one and the
autonumber started working properly again. However, this
problem happened again today. So, I changed the Autonumber
to "Random" instead of "Increment". I've searched through
the knowledgebase on microsoft.com and could not find a
reference to this issue.
Any suggestions, comments/insights would be helpful!
On two separate instances when trying to insert a new
record into this table through a form, I've gotten a key
violation error. When I went to the table to try to insert
information directly, I noticed that the table's
autonumber functionality was assigning a number that had
already been generated in the table. For example, the last
key value in the table is "412", but the table is
assigning "326" as the next primary key for the new row in
the table. However, "326" has already been assigned as a
primary key.
Does anybody know how and why this could be happening??? I
have been working with Access for about 7 years or so and
I'm floored by this problem. I have never seen this
before. I have the database set-up for a multi-user
environment, which I've done several times in the past.
The first time this problem occurred I created a duplicate
copy of the table and deleted the old one and the
autonumber started working properly again. However, this
problem happened again today. So, I changed the Autonumber
to "Random" instead of "Increment". I've searched through
the knowledgebase on microsoft.com and could not find a
reference to this issue.
Any suggestions, comments/insights would be helpful!