P
pete2586
Hi,
I am trying to write some code to extract certain data from a number of text
files of the same layout and enter it into a table. An example of the text
file is shown below:
Monday, July 18, 20054:49 PM
CYCLE
START
M- 1041- 4843 PART 299T 1651 18 7
---------- --------- ---------- --------- ---------- ---------
PART 300 18 7 2005 16.51
---------- --------- ---------- --------- ---------- ---------
FEATURE 3
0FFSET 2
MAIN SPINDLE EXTERNAL FINISH TURN
X - .018 Y .000 Z - 2.999 SIZE 16.532
OLD WEAR OFFSET X - .056 Y .000 Z - .050 R .000
NEW WEAR OFFSET X - .088 Y .000 Z - .050 R .000
FEATURE CORRECT
---------- --------- ---------- --------- ---------- ---------
FEATURE 4
0FFSET 27
MAIN SPINDLE HORIZONTAL SPOT DRILL
X 32.995 Y - .033 Z .000 SIZE 2.980
OLD WEAR OFFSET X .000 Y .000 Z .301 R .000
NEW WEAR OFFSET X .000 Y .000 Z .291 R .000
FEATURE CORRECT
If I want to import the M number, M- 1041- 4843, the part number, 300, the
date, as well as the x, y, z and size, how could i go about it?
I'm working in Access 97
Thanks
I am trying to write some code to extract certain data from a number of text
files of the same layout and enter it into a table. An example of the text
file is shown below:
Monday, July 18, 20054:49 PM
CYCLE
START
M- 1041- 4843 PART 299T 1651 18 7
---------- --------- ---------- --------- ---------- ---------
PART 300 18 7 2005 16.51
---------- --------- ---------- --------- ---------- ---------
FEATURE 3
0FFSET 2
MAIN SPINDLE EXTERNAL FINISH TURN
X - .018 Y .000 Z - 2.999 SIZE 16.532
OLD WEAR OFFSET X - .056 Y .000 Z - .050 R .000
NEW WEAR OFFSET X - .088 Y .000 Z - .050 R .000
FEATURE CORRECT
---------- --------- ---------- --------- ---------- ---------
FEATURE 4
0FFSET 27
MAIN SPINDLE HORIZONTAL SPOT DRILL
X 32.995 Y - .033 Z .000 SIZE 2.980
OLD WEAR OFFSET X .000 Y .000 Z .301 R .000
NEW WEAR OFFSET X .000 Y .000 Z .291 R .000
FEATURE CORRECT
If I want to import the M number, M- 1041- 4843, the part number, 300, the
date, as well as the x, y, z and size, how could i go about it?
I'm working in Access 97
Thanks