Jump to content
Sign in to follow this  
antonisnyc

Retrieve String from a multi-line field

Recommended Posts

Hello,

 

I am trying to retrieve the highlighted value shown in the picture below. I used sub-string as seen below to create a new column called Account_Name, but because the Account name exists twice it only picks up the first one and not the one i would like. Do you know what i should change?

  SubString(Reverse(tblNtlogMessage.Message), Len(Right(tblNtlogMessage.Message,
  CharIndex('Account Name:', tblNtlogMessage.Message))) + 13,
  Len(tblNtlogMessage.Message) - Len(Right(tblNtlogMessage.Message,
  CharIndex('Account Name:', tblNtlogMessage.Message))) -
  Len(Right(tblNtlogMessage.Message, Len(tblNtlogMessage.Message) -
  CharIndex('Account Domain:', tblNtlogMessage.Message))) - 15) Account_Name

image.thumb.png.f3e57214eb2e774220d6b57e84ca14c2.png

 

Thanks a lot in advance!

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...