B
Boon
Hello,
Here is my situation.
I have table A that has the field ID as the first field. The field ID is the
AutoNumber and it is a primary key. Table A also has several fields in the
table (name, date,shipping date......)
The table A has 2000 records. Today, I worked in table A and removed some
records.... Then I compact and repaired the database. Now when adding new
data into the table A, the field ID did not start at 2001. It started at (I
think) the first missing number in the sequence. Also when I append the new
data to the table A, all the weird things happen. For instance, says I have
3 new records, and the I have 3 consecutive numbers in the sequence that are
still available as a key in field ID, I can append all 3 records. But say if
I have 3 records and I have only 2 consecutive numbers in a sequence, Access
appends just 2 records. I know this is confusing. I am still confused...
How can I work around this? I want to use AutoNumber field, but at the same
time, I want to be able to compact and repair and want the autonumber starts
at the highest number in the field ID..
thanks,
Boon
Here is my situation.
I have table A that has the field ID as the first field. The field ID is the
AutoNumber and it is a primary key. Table A also has several fields in the
table (name, date,shipping date......)
The table A has 2000 records. Today, I worked in table A and removed some
records.... Then I compact and repaired the database. Now when adding new
data into the table A, the field ID did not start at 2001. It started at (I
think) the first missing number in the sequence. Also when I append the new
data to the table A, all the weird things happen. For instance, says I have
3 new records, and the I have 3 consecutive numbers in the sequence that are
still available as a key in field ID, I can append all 3 records. But say if
I have 3 records and I have only 2 consecutive numbers in a sequence, Access
appends just 2 records. I know this is confusing. I am still confused...
How can I work around this? I want to use AutoNumber field, but at the same
time, I want to be able to compact and repair and want the autonumber starts
at the highest number in the field ID..
thanks,
Boon