Sort email addresses after @domain.com

J

JohS

Hi. Anyone who know where I can find a sample of how I can make a query sort
after the @domanin.com (I need a dynamic elimination of the name before @)?
Thanks, JohS
 
S

Stefan Hoffmann

hi,
Hi. Anyone who know where I can find a sample of how I can make a query sort
after the @domanin.com (I need a dynamic elimination of the name before @)?
Use

ORDER BY Mid(Nz(fieldName, ""), InStr(Nz(fieldName, ""), "@")+1)


mfG
--> stefan <--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top