Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

select a portion of a text field 1

Status
Not open for further replies.

simon551

IS-IT--Management
May 4, 2005
249
Hi,

I'm trying to extract text that occurs after a specific symbol in a field.

specifically: I'm trying to select the text after a ":" where a ":" (colon) is present.

For example if the field contains Star:North Star, I want the query result to be North Star. But if the field contains Star, the result should be Star.

I don't even know this is possible.

Any ideas?

Thanks,
simon
 
NewField: IIf(OldField Like '*:*', Mid(OldField,1+InStr(OldField,':')), OldField)

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Your still the best, PHV!

Thank you once again!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top