Discussion Locked

join multiple access tablein vb data bin

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I have a text file to import into access that is 510,000 line long. to do this i have to split the file into multiple table. hit all tables in VB6.0 using a data-binding link to that table in access

3 replies

by keith.hall1

In theory, providing you've created a link to the tables in Access, and that you give each table the same column names with the same datatype for each column, you can recreate the original table with a Union query e.g.
"SELECT * FROM tbltable1 UNION SELECT * FROM tbltable2 UNION SELECT * FROM tbltable3"
Call it qryUnion

Then create a Make-Table query with this query to create a new Table tblFull
"SELECT qryUnion.* INTO tblFull
FROM qryUnion;"
You can now delete the links to the originaltext files.
This will work in practice, but I don't know how robust ot will be in Access with 510000 records?? Otherwise you will need to step through each line for each table, and addnew then update with the recordsets.

This discussion is closed to new replies.