Runs fairly fast and the result is a local table that has all of the indices I need.
Yes that's the beauty of linked tables.
2) Copy and paste the 'linked table' to another 'local table', structure only
3) Modify design of new 'local table'. Insert 'ID' row with AutoNumber data type, and set Indexed Dups Ok on important fields
4) Run a query (INSERT INTO 'local table' SELECT * FROM 'linked table';
Runs fairly fast and the result is a local table that has all of the indices I need. Like I said, only problem now is automating the whole thing for future imports.
Unfortunately you're still thinking of your Access database as an Excel spreadsheet. In a database one does not copy and paste records, nor does one continually create/delete local tables or create indexes at will.
Let me revise your steps the Access way:
2) Create a Make-Table query based on your linked table and execute the query. Now this will create a table structure as well as copy the data from the linked table to the local table
3) Modify the design of new 'local table' - this is fine but I don't see the need of an AutonumberID. Perhaps you want to include a Now() field that will indicate when data was imported for future updates.
4) Not necessary because it's already done in step 2
All of the above is something that should be done
manually in order to establish a stable table structure that doesn't change structurally.
For future updates to this table you would
automate the following:
1. Link to the table - this link should already be established so maintain the same file name and cleanse the file regularly
2. Create a Select Query that finds records that exist in the linked table but not in the local table
3. Run an APPEND Query based on the results of 2.
I hope you follow?
My only concern is that you mentioned about automating the process you mentioned in your last post and this would indicate that you've not given us the full picture as to whether you were planning on deleting the table everytime or not.