I have a 30 tables, 15 tables have autonumbers as a unique identifier.
I want to leave the table/field structure verbatium however I want to change the field names by prefixing them with str, lng, dtm, etc based on the data type.
So for each table I have an empty table with different table name and same file structure and I want to come up with an append query to append all the records from old table to new table making sure I preserve the autonumbers in all tables.
I tested this with Northwind Categories
INSERT INTO Categories_New ( lngCategoryID, strCategoryName, memDescription, olePicture )
SELECT Categories.CategoryID, Categories.CategoryName, Categories.Description, Categories.Picture
FROM Categories;
And it seem to work, can I assume that this will work the same way with all my tables that have autonumbers?
Note: CategoryID is autonumber and a primary key, some of my tables autonumber fields do not have a primary key.
Thanks, John