I need to parse (separate out) the parts the field containing e-mail address for display in a select query..
In the results I need to take a field 'emailaddress@hotmail.com' and display it a calculated expression as 'emailaddress' in one field and as "hotmail.com" in another field... so I can filter on the email provider...essentially removing everything to the right or left of the ampersand.. including the ampersand.
My returned data should look like this..
Field1 Field2 Field2
emailaddress@hotmail.com emailaddress hotmail.com
I don't want to change the source data.. just parse for viewing / filtering purposes. I tried the code...
StaffStu: Right(Trim([EmailAddress]),Len(Trim([EmailAddress]))@InStr(1,[Emailaddress],""))
But it errors on the Ampersand.
Any help would be appreciated!