F
FatMan
Hi all:
I need help in processing a text file that will be used to populate a
database. The text file is a delimited file (“;†as the separation
character) but is unlike any I have seen or used before. It if makes a
difference the text file is being created by a piece of equipment used to
grade fruit.
The text file looks like:
188;20071122000001;19;37;290077;
2300;16:15:07;07:29:16;15:14:08;0;1;073260610001;1 ====== Filling data
COX;65-70;Class I;;Red 40-100%;WCOXCAPBGP65E;15 === Content data
20071121-1-004;120;816,1;2;7;290077; 2300 ============ Origin data
199;20071122000002;25;37;290080;
2221;16:23:41;07:50:21;15:26:39;0;1;073260610002;1
COX;65-70;Class I;;Red 40-100%;WCOXCAPBGP65E;15
20071121-1-004;120;816,1;2;7;290080; 2221
179;20071122000003;20;35;290117;
1929;18:18:11;07:50:31;13:32:20;0;1;073260610003;1
COX;70-75;Class I;;Red 40-100%;WCOXCAPBGP70E;15
20071121-1-004;120;816,1;2;7;290117; 1929
Please note:
Filling data appears in the text file on one line (no word wrapping).
Origin data may be more than one line but each line contains the same number
of pieces of data.
My problem is I have only seen/worked with text files where there is the
same number of pieces of data for each record.
My ultimate goal would be to read/loop through the text file and save each
part (filling, content and origin data) in its own table with a “fillingIDâ€
saved as part of the content and origin records.
Can anyone tell me if this can be done in Access 2000 and if so how would
you go about it?
Any and all help is greatly appreciated,
FatMan
I need help in processing a text file that will be used to populate a
database. The text file is a delimited file (“;†as the separation
character) but is unlike any I have seen or used before. It if makes a
difference the text file is being created by a piece of equipment used to
grade fruit.
The text file looks like:
188;20071122000001;19;37;290077;
2300;16:15:07;07:29:16;15:14:08;0;1;073260610001;1 ====== Filling data
COX;65-70;Class I;;Red 40-100%;WCOXCAPBGP65E;15 === Content data
20071121-1-004;120;816,1;2;7;290077; 2300 ============ Origin data
199;20071122000002;25;37;290080;
2221;16:23:41;07:50:21;15:26:39;0;1;073260610002;1
COX;65-70;Class I;;Red 40-100%;WCOXCAPBGP65E;15
20071121-1-004;120;816,1;2;7;290080; 2221
179;20071122000003;20;35;290117;
1929;18:18:11;07:50:31;13:32:20;0;1;073260610003;1
COX;70-75;Class I;;Red 40-100%;WCOXCAPBGP70E;15
20071121-1-004;120;816,1;2;7;290117; 1929
Please note:
Filling data appears in the text file on one line (no word wrapping).
Origin data may be more than one line but each line contains the same number
of pieces of data.
My problem is I have only seen/worked with text files where there is the
same number of pieces of data for each record.
My ultimate goal would be to read/loop through the text file and save each
part (filling, content and origin data) in its own table with a “fillingIDâ€
saved as part of the content and origin records.
Can anyone tell me if this can be done in Access 2000 and if so how would
you go about it?
Any and all help is greatly appreciated,
FatMan