I have imported some emails and now want to extract the name of a person and their email address from the contents of the email. Their Email address in the contents of the email occurs after the work E-mail so using the code below in a query looks as though it truend the value beautifully. however, it also returns the rest of the email content after the email address! Is there another bit of code that I can write to delete everything after the email address or perhaps a better way of extracting. I have included the contents of the email as well below.
Mid([Contents];InStrRev([Contents];"E-mail")+7)
EMAIL CONTENTS
Hi Chris,
The LANDING has been submitted, see below for details:
First Name: patrickdoyle
E-mail: patrickdoyle748@BTINTERNET.com
Phone: 0000000
This form was submitted live
-----
No virus found in this message.
Version: 2012.0.2221 / Virus Database: 2441/5331 - Release Date: 10/14/12
Mid([Contents];InStrRev([Contents];"E-mail")+7)
EMAIL CONTENTS
Hi Chris,
The LANDING has been submitted, see below for details:
First Name: patrickdoyle
E-mail: patrickdoyle748@BTINTERNET.com
Phone: 0000000
This form was submitted live
-----
No virus found in this message.
Version: 2012.0.2221 / Virus Database: 2441/5331 - Release Date: 10/14/12