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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to get sring to right of @

Status
Not open for further replies.

Moss100

Technical User
Aug 10, 2004
579
0
16
GB
Hello,

I have a field [EmailAdd].

I want to extract the email address after the @ for each record. So mandy56@hotmail.com would just return hotmail.com

How do I approach this?

Many thanks Mark
 
This seems to work:

Mid([EmailAdd],InStrRev([EmailAdd],"@")+1)

Regards Mark
 
I would typically start from the left:

Code:
Mid([EmailAdd],InStr([EmailAdd],"@")+1)

Duane
Minnesota
Hook'D on Access
MS Access MVP 2001-2016
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top