J
John W. Vinson
1. Open Form A and SubForm A:
2. Pick Items in subform which populate Table A: Auto#: 1, 2, 3 and 4
3. Click some button...then Transfer Values in Table A to Table K
4. Table K now as numbers 1, 2, 3, 4
5. Time goes on...1 thru 4 goes on daily
6. Now 6 months later I compact the back-end db
7. Open form A and Subform A:
8. Pick Items in subform which populate Table A: Auto#: 1, 2, 3 and 4
9. Click some button...then Transfer Values in Table A to Table K (now I have
TWO, 1's, TWO 2's, TWO 3's, etc...This is the problem...if I understand what
compacting does...
Thanks for the explanation.
All I can say is... Autonumbers don't work as you are assuming, and should not
be used in this way. You CANNOT make *ANY* assumption about what the value of
an as-yet-unassigned autonumber might be, other than that (barring bugs, which
did happen in some releases) it will not duplicate any existing value in its
table.
If TableB has an Autonumber field, and you don't have any relationships
established on the TableA autonumber value, you could change the append query
in (3) to include all fields EXCEPT the autonumber. TableB's autonumber would
assign values 5, 6, 7, 8 - or 312, 313, 314, 315 - to the records transferred
from TableA. Would this resolve your issue?