I have a text file that I need to import into access, however the file is "stacked". Below is an example of my data
|C1.|FW|Ver.|Seg|Seq|Segmentdata
|900|2222222222 | |BBB1| 13|111111 111 111 1
|900|2222222222 | |BBB2| 13|5555 6/2/2008 11 1 222 222
Outlook should look like:
Table 1 (based on Seg Key) BBB1
Invoice Test1 Test2 Final
111111 111 111 1
Table 2 (based on Seg Key) BBB2
OrderNum Date Price Quantity PricePer Value
5555 6/2/2008 11 1 222 222
I think I need to create a loop based on the Seg Key and have a lookup table for the different headers.
Anyhow, I really don't know how to approach this but would appreciate any help.
|C1.|FW|Ver.|Seg|Seq|Segmentdata
|900|2222222222 | |BBB1| 13|111111 111 111 1
|900|2222222222 | |BBB2| 13|5555 6/2/2008 11 1 222 222
Outlook should look like:
Table 1 (based on Seg Key) BBB1
Invoice Test1 Test2 Final
111111 111 111 1
Table 2 (based on Seg Key) BBB2
OrderNum Date Price Quantity PricePer Value
5555 6/2/2008 11 1 222 222
I think I need to create a loop based on the Seg Key and have a lookup table for the different headers.
Anyhow, I really don't know how to approach this but would appreciate any help.