Jump to content

Retrieve String from a multi-line field

Recommended Posts



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



Thanks a lot in advance!


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.

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.

  • Create New...