Solved

HOw to parse multiple text data into seperate fields

Posted on 2014-03-12
2
392 Views
Last Modified: 2014-03-12
I am analyzing survey data that I have imported into Access.  One field has multiple text strings (up to six) separated by semi colons.  I am looking for the easiest way to parse this field into multiple fields.  Thanks for any insight.
0
Comment
Question by:Sbovino
2 Comments
 
LVL 119

Accepted Solution

by:
Rey Obrero earned 500 total points
ID: 39925141
use a function like this

Function fnParseInfo(vString As Variant, idx As Integer, Optional Delimiter As String = ";") As String

   Dim myArray() As String
   myArray = Split(vString, Delimiter)

   If idx < 0 Or idx > UBound(myArray) + 1 Then
      fnParseInfo = "Null"
  Else
      fnParseInfo = myArray(idx - 1)

   End If

End Function

see this similar thread

http://www.experts-exchange.com/Database/MS_Access/Q_28255071.html#a39537854
0
 

Author Closing Comment

by:Sbovino
ID: 39925307
Thanks.  That solved it!
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In the article entitled Working with Objects – Part 1 (http://www.experts-exchange.com/Microsoft/Development/MS_Access/A_4942-Working-with-Objects-Part-1.html), you learned the basics of working with objects, properties, methods, and events. In Work…
In Debugging – Part 1, you learned the basics of the debugging process. You learned how to avoid bugs, as well as how to utilize the Immediate window in the debugging process. This article takes things to the next level by showing you how you can us…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now