Johnny777 Posted December 1, 2011 Posted December 1, 2011 Hi all Is it possible to sort records by email domain name on a set of contacts records. The way I have thought to do it is to create a variable based on the email - strip out the part before the @ symbol - put it in another field and then sort by that field. Has anyone got any alternatives and is there a function for taking off the first part of the email address Thanks for reading all
doughemi Posted December 1, 2011 Posted December 1, 2011 Sounds like a good way to me. Calculated field DomainName = Right(EmailAddr; Length(EmailAddr - Position("@"; EmailAddr; 1; 1)))
comment Posted December 1, 2011 Posted December 1, 2011 Right(EmailAddr; Length(EmailAddr - Position("@"; EmailAddr; 1; 1))) That doesn't look right.
doughemi Posted December 1, 2011 Posted December 1, 2011 That doesn't look right. Boy, I'll say! Much better: Right(EmailAddr; Length(EmailAddr)- Position( EmailAddr; "@";1; 1)) (tested this time!) :rolleyes:
Johnny777 Posted December 16, 2011 Author Posted December 16, 2011 Hi all The last post worked a treat Thanks very much all John
Recommended Posts
This topic is 4726 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now