B
Bastian Kraus
hello,
i've got a confusing problem with increment values of a primary key in
my access 2007 database.
the situation:
i have a table with a running autovalue increment id field. there are
records with the id's 12,13,14,...,30,31 in the table. i delete the
records with the id's 20 to 30 from the table and after that i insert
another record. the increment value starts with the id 20 and not with
32. i insert another amount of records till the increment is by 29. so
if i will insert anoter record the increment uses the id 30, but there's
still a record in the table with the id 30 and access throws an error
message, which is ok because access trys to insert a non-unique key. but
how could this be that the increment goes down from 32 to 20?
all this happens with a self-coded programm in visual basic 2008 with an
OleDB Connection and direct plain SQL commands.
Could someone help me with this?
thanks a lot!
Bastian Kraus
i've got a confusing problem with increment values of a primary key in
my access 2007 database.
the situation:
i have a table with a running autovalue increment id field. there are
records with the id's 12,13,14,...,30,31 in the table. i delete the
records with the id's 20 to 30 from the table and after that i insert
another record. the increment value starts with the id 20 and not with
32. i insert another amount of records till the increment is by 29. so
if i will insert anoter record the increment uses the id 30, but there's
still a record in the table with the id 30 and access throws an error
message, which is ok because access trys to insert a non-unique key. but
how could this be that the increment goes down from 32 to 20?
all this happens with a self-coded programm in visual basic 2008 with an
OleDB Connection and direct plain SQL commands.
Could someone help me with this?
thanks a lot!
Bastian Kraus