This is a real easy one I assure you!!!

K

Ken Sheridan

You can't do it by formatting; use a query, using the Instr function to
identify the position of the @ character, and the Mid function to return the
substring to its right, e.g.

SELECT *
FROM YourTable
ORDER BY MID([EmailAddress],INSTR([EmailAddress],"@")+1);

or you can use the Right and InstrRev functions like so:

ORDER BY RIGHT([EmailAddress],INSTRREV([EmailAddress],"@")+1)

Ken Sheridan
Stafford, England
 
Top