The way I'd probably go about it is to use InStr() to locate the position of the @ symbol.
lngDivider= InStr(First position to be searched - starts at 1 if left blank,String to be searched, String to search for, Comparison type - I recommend vbTextCompare)
Once you have that, you can use Left(String to be searched, lngDivider - 1) to get everything before the @, and Right(String to be searched, lngDivider - 1) to get everything after the @.
It can be done either way. In SQL, you'd do something like this:
Code:
SELECT aaaTest.Email, Left([Email],InStr(1,[Email],"@")-1) AS AddyName, Right([Email],Len([Email])-InStr(1,[Email],"@")) AS EmailDomain FROM aaaTest;
Normally, though, I just create a custom function that does the same thing, and have it called via an unbound control on the form or report, mainly because I try to put as few calculations as possible into queries to keep them as fast as possible.