Hi guys,
I had an access application which was very useful, but I lost it when my PC crashed. And unfortunately I don't know coding, so I am stuck :-(
Here is the principle :
I have many access files. Including big ones, bigger than 2GB.
Each one of these access files contain only 1 table.
These files are used for storing data, but they are too big.
So I want to dispatch the data into many small files instead of 1 big one.
All the data should be kept, but stored in 10 small files instead of 1 big one.
If there are 50.000.000 lines in the original file, these 50.000.000 lines should be dispatched into the small files following the table of correspondance.
The structure of the table contained in the small files is the same as the original file structure.
So the access application should :
1. create 10 smaller files with the same name as the original one and "-1", "-2", "-3", "-4", ... "-10" at the end. If one of these small files already exist in the folder, the data should be added into this already existing file.
2. depending on the 8 first characters (generally composed of 2 letters, 1 space, 2 letters, 1 space, 2 letters) of the 1st field, each line should be dispatch into 1 of these 10 smaller files. I provide the table of correspondance which relates every sequence of 8 characters with the small file number. One specific line whose ID field contain "Flop_Tur" should be added to all 10 small files, except if this line is already in the small file in order to avoid duplicates.
3. in every small file, the "ID" field should be the primary key. If that's a problem, we can skip this step as I already have an application which does that.
I have attached an example of original mdb file, and the table of correspondance.dispatch correspondance.zip
As far as I can remember, the code was not too complex. I hope someone could help me to code this.
Thank you
Nico