still working on it, but i have this:
[codebox] strSQL = “DELETE FROM ;”
DoCmd.RunSQL strSQL
strSQL = “SELECT INTO ” & _
” FROM ” & _
” WHERE ;”
DoCmd.RunSQL strSQL <– this works fine, new data appears
Dim dbs As Database
Dim tdfRUGs As TableDef
Dim idxID As Index
Set dbs = CurrentDb
Set tdfRUGs = dbs!RUGs
With tdfRUGs
Set idxID = .CreateIndex("ID")
End With
Indexes.Append idxID <– says 'object required'
[/codebox]
I tried setting up the new table with an ID column (autonumber, index no dupes) and re-did the delete statement to clear all columns except Mr. ID but the new table runs without keeping that column. which is fine, i want to add the id column after the fact. Just not quite sure how to do it…
TIA