Does anyone have any tips that could help speed up a process of breaking down a table and inserting a large number of records into a new table.
I’m currently using Access and VBA to convert a table that contains records with a large string (700 + characters) into a new table where each character has its own record (row). I’m doing this by looping through the string 1 character at a time and inserting into the new table using simple DAO in VBA.
Currently I’m working with a small subset of data – 300 records each with a 700 character string. This process takes about 3 hours to run so isn’t going to scale up to the full dataset of 50,000 records!
table 1 structure
id – string
001 – abcdefg
becomes
table 2 structure
id – string
001 – a
001 – b
001 – c
. .
. .
. .
I’m open to any suggestions that could improve things.
Cheers
Phil
Consider this example using Northwind. Create a table called Sequence with an
INTEGER(Access = Long Integer) and populate it with values 1 to 20 (i.e. 20 row table). Then use this ACE/Jet syntax SQL code to parse each letter of the employees’ last names: