Thank you for your reply.
I thought that VB code would be involved. I am
attachining a sample ofthe file below.
The top portion would need to go to one table and the
bottom a parts table (some of it I don't even want
imported if that is possible to parse as well.)
"01001","PHOS. LINE 2 2A PUMP","00","P2-2A-1087-
C",2,"316L"
52,182.9428,219,"CS","01-16-2003",0
"1 REVISED DIMS.","02-04","CS"
"2 MATERIAL","03-06","CS"
"No PWHT","No Hydro","5153"
"Priority "
************DON'T WANT TO IMPORT'
0
2
""
""
0
7
2,"16BAP0****S"
6,"15BAP0****S"
1,"16BRP0"
1,"16BSP0"
1,"16BXP0"
3,"15BRP0"
6,"15BSP0"
**********START OF PARTS INFORMATION
"1",279.4,"P16PSIBE","GxB",""
"2",685.8,"P15PSIBE","BxB",""
"3",395.3,"P15PSIBE","BxB",""
"4",481,"P15PSIBE","BxB",""
"5",2,"L15PCB*P1*","",""
"6",1,"E15PSIBW9015","",""
"7",1,"T16PSIBU15B","",""
"8",1,"R16PSIBQ15BBB","",""
"9",2,"A15PSIBC","",""
"END" ************************INDICATES END OF THIS
RECORD
"01000","PHOS. LINE 2 2A PUMP","00","P2-2A-1085-
B",3,"316L"
76,157.9179,173,"CS","01-16-2003",0
"1 ADDED PRE-GROVED 8IN X 6IN PUP","01-21","CS"
Thanks again for your help.
Shawna
-----Original Message-----
Hi Shawna,
Access's built-in text file import system can't handle files like this.
Instead, you have to use VBA to read the file line by line, parse each
line and put the data into the appropriate tables and fields. If you
need more help, post back here with more information, including a sample
of the data.
On Tue, 18 Nov 2003 10:38:41 -0800, "shawna"
I need to import information from a text file but it
isn't deliminated nicely. i.e. a sales order
The file consists of name and address info, but also the
parts info. Is there a different way to have access find
the right information for the right field/table besides
the standard one row = one record in the deliminated
fomat? Any help is appreciated!
--
John Nurick [Microsoft Access MVP]
Please respond in the newgroup and not by email.
.