Hi, I have a large numbers of text files I'm sent regularly as they are changed/updated. I import them and replace the old ones, run some queries that are already written in Access and produce what I need.
I was trying to find something to speed up the import process, and so I used the code found at support.microsoft.com/kb/241477
It works perfectly if the tables are not already created. Could somebody more experienced suggest a revision to do a wholesale replacement of the tables?
Thank you!
I was trying to find something to speed up the import process, and so I used the code found at support.microsoft.com/kb/241477
Code:
Sub ImportSchemaTable()
Dim db As DAO.Database
Set db = CurrentDb()
db.Execute _
"SELECT * INTO NewContact FROM [Text;FMT=Delimited;HDR=Yes;DATABASE=C:\My documents;].[Contacts#txt];", _
dbFailOnError
db.TableDefs.Refresh
End Sub
It works perfectly if the tables are not already created. Could somebody more experienced suggest a revision to do a wholesale replacement of the tables?
Thank you!