I have a client that has been entering in the primary key (childid) of a table manually (numeric). its a text field type, and now they want to change it to an autonumber for future entries. obviously the correct way of assigning ID numbers, however;
the table is dense, and I cannot change an existing field to an autonumber. so I need to be able to maintain the existing ID numbers, which are not necessarily all in sequence, and have them exist within an autonumber field.
any ideas?
I was thinking about copying the structure of the table (call new one tbl2), make the child id autonumber. then sorting the existing table (tbl1) by ID#, query in the first record to create the starting point for the autonumber into tbl2, then manually copy over everything (other than the child id) from tbl1 over to tbl2 and let the auto number do its thing. then do a comparison against the backup table to find errors, and manually do them.
any1 else have any other, better ideas??
thanks
the table is dense, and I cannot change an existing field to an autonumber. so I need to be able to maintain the existing ID numbers, which are not necessarily all in sequence, and have them exist within an autonumber field.
any ideas?
I was thinking about copying the structure of the table (call new one tbl2), make the child id autonumber. then sorting the existing table (tbl1) by ID#, query in the first record to create the starting point for the autonumber into tbl2, then manually copy over everything (other than the child id) from tbl1 over to tbl2 and let the auto number do its thing. then do a comparison against the backup table to find errors, and manually do them.
any1 else have any other, better ideas??
thanks