5 replies
by glen_mcleod
If you know the format of the file (delimited, fixed length, etc.) and it isn't going to change, then this should be relatively easy. Use the VBA Open command to open the file, read it into local variables on row at a time, then insert it into yourrable. Access doesn't have a 'Truncate table' statement like large RDBMS's but all you have to do is execute a delete query before you start inserting.
Glen
by js6
by donq
Build your "target" Access 2000 table exactly as the imported text is formatted and save it. Then in the same database create a delete query to clear existing data from the new table and then create an append query using your (Intranet or floppy?) text file as the data source.
Once all the parts start working properly save them in a single macro (or VBA procedure) and connect them to a button tht automates everything.
by js6
by js6
This discussion is closed to new replies.
Trending Software posts
Sort by Trending