Benjaminvh
Registered User.
- Local time
- Today, 23:00
- Joined
- Mar 11, 2009
- Messages
- 17
I have a table (DATA) from which I am creating another table (TEMP). TEMP contains all of the fields of DATA, with the addition of several calculated fields as well as considerably more rows (1 row of DATA yields about 25 rows in TEMP). This has meant I cannot create the entire TEMP table at once (30 million+ records).
I was thinking of:
1. Running through, say, 50000 records of DATA to creat +-1 million records in TEMP, then exporting this to a txt file.
2. Repeating this procedure for each batch of 50000 DATA records until EOF, each time adding the (new) records of temp to THE SAME text file.
Once this is done, however, I need to actually make use of the records in the TEMP.txt file. Fortunately extensive grouping takes place at this stage (the variables 'grouped by' will depend on the user's inputs using combo boxes) such that the grouped text file would contain few enough records for access to handle. The problem here is, how do I extract the records from the text file to access, with the necessary grouping every now and again? I could perhaps import some of the text file, group-by make table query, repeat this and append the table, then group by, then import more data, append and group and so on until EOF. Can data from a text file be imported in parts?
Is there a way to do this? Or perhaps a better way of solving my problem? I am not set on using .txt format, its just that access cant handle the number of records I will create.
Thanks very much in advance
The guys on this forum are life-savers
I was thinking of:
1. Running through, say, 50000 records of DATA to creat +-1 million records in TEMP, then exporting this to a txt file.
2. Repeating this procedure for each batch of 50000 DATA records until EOF, each time adding the (new) records of temp to THE SAME text file.
Once this is done, however, I need to actually make use of the records in the TEMP.txt file. Fortunately extensive grouping takes place at this stage (the variables 'grouped by' will depend on the user's inputs using combo boxes) such that the grouped text file would contain few enough records for access to handle. The problem here is, how do I extract the records from the text file to access, with the necessary grouping every now and again? I could perhaps import some of the text file, group-by make table query, repeat this and append the table, then group by, then import more data, append and group and so on until EOF. Can data from a text file be imported in parts?
Is there a way to do this? Or perhaps a better way of solving my problem? I am not set on using .txt format, its just that access cant handle the number of records I will create.
Thanks very much in advance
The guys on this forum are life-savers