T
tcb
If I have a table with an autonumber as primary key which I would
depoplulate and then repoplulate by appending from another table with
the same structure, will it always work? i.e, record 1 autonumber =
1, record 2 autonumber = 2... etc. It works in my testing, but it
doesn't seem like it should, or that I should count on it, nor does it
seem like a good practice.
For example, if there are 25 (1-25) retailers in tRetailer and if I
"Delete * FROM tRetailer", I know that if I manually entered another
retailer the next Autonumber would be 26.
However, if I append from the other table, my test indicated that it
will accept 1,2,3... ("INSERT INTO tRetailer SELECT tNewRetailer.*
FROM tNewRetailer"
***
Interestingly, and this seems like an anomaly, when the autonumber was
not a primary key, in a test I ran the same append twice. It
populated duplicate numbers into the autonumber field.
depoplulate and then repoplulate by appending from another table with
the same structure, will it always work? i.e, record 1 autonumber =
1, record 2 autonumber = 2... etc. It works in my testing, but it
doesn't seem like it should, or that I should count on it, nor does it
seem like a good practice.
For example, if there are 25 (1-25) retailers in tRetailer and if I
"Delete * FROM tRetailer", I know that if I manually entered another
retailer the next Autonumber would be 26.
However, if I append from the other table, my test indicated that it
will accept 1,2,3... ("INSERT INTO tRetailer SELECT tNewRetailer.*
FROM tNewRetailer"
***
Interestingly, and this seems like an anomaly, when the autonumber was
not a primary key, in a test I ran the same append twice. It
populated duplicate numbers into the autonumber field.