troubleshooting Question

how to delimit a text in one field

Avatar of angie_angie
angie_angie asked on
Microsoft Access
19 Comments1 Solution676 ViewsLast Modified:
Hi Experts,

I have an address stored in one field as:

AddrLine_1|AddrLine_2|AddrLine_3... ...|AddrLine_n

where n is different for different records, but will not exceed 10.
The delimiter is always "|". I want to seperate the text and put the values into another table as follows:

fld_1                   fld_2                 ... ...   fld_6           ... ...      fld_10
AddrLine_1       AddrLine_2        ... ...  AddrLine_6 ... ...    AddrLine_10  <---------- one record
AddrLine_1       AddrLine_2        ... ...  empty          ... ...      empty           <---------- another record
... ..............             .........               ................                          .........

Can anyone help me with this?

I'll be using INSERT INTO to add the data.
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 19 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 19 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros