Jump to content

This topic is 7720 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I'm trying to learn how to parse text from a field that looks like this:

Customer:Subcustomer:Job

or

MTV Networks:Betty Jones:Real World Episode 1

How can I get each piece of this string into its own field?

Thanks for any pointers!

Posted

Middle( ":" & text & ":", Position( ":" & text & ":", ":", 0, x ) + 1, Position( ":" & text & ":", ":", 0, x + 1 ) - Position( ":" & text & ":", ":", 0, x ) - 1 )

where 'x' is the ordinal group for which you are parsing, i.e. when x = 2, the former record returns 'Subcustomer' and the latter returns 'Betty Jones'.

This topic is 7720 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.