Extract text between certain characters (1 Viewer)

pcampos

Registered User.
Local time
Today, 08:58
Joined
Jan 20, 2010
Messages
12
Hi there... I have a field that contains the following data:

FirstName:pedro LastName:Campos Restaurant:BI Strand Location:North Month:March

I need to extract the data into different fields like this:

Field1: Pedro
Field2: Campos
Field3: BI Strand
Field4: North

Can someone explain how to extra the information I want into different fields
 

pbaldy

Wino Moderator
Staff member
Local time
Today, 00:58
Joined
Aug 30, 2003
Messages
36,124
Offhand, the InStr() function will lead you to the starting position of any of the parts (and also to the end of the previous part). Combining that with the Mid() function should let you pull out any piece. I might create a function, as I suspect the logic would be easier to follow there.
 

Users who are viewing this thread

Top Bottom