Solved

HOw to parse multiple text data into seperate fields

Posted on 2014-03-12
2
391 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
Familiarize people with the process of utilizing SQL Server stored procedures 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 Micr…
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.

746 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

13 Experts available now in Live!

Get 1:1 Help Now