Chopping up email addresses

Grunners

Registered User.
Local time
Today, 01:24
Joined
Jun 25, 2002
Messages
59
Hiya all,

I had this brilliant idea to cut down on the spam in our office - it works but if I don't put an 'allow' list in to our firewall I get all the spam by default!

We have hundreds of trusted email addresses on a database. Thing is I don't want the whole email address - just the domain.

I.e. myname@mycompany.co.uk just needs to become mycompany.co.uk.

My question: How do I just get the characters after the @

Any answer can be code or sql based and many thanks in advance for any advice!

Thank God it's Friday...
 
Thanks neileg!

It worked a treat. String manipulation actually scares me... I'll have to practice more... Hmmmmph

Best Regards
Grunners :rolleyes:
 
Thanks neileg.

I wanted to get the first name from a full name string and you put me on the right path.

For example:

John Smith (Full Name str) wanted to just get the First name .... hey presto...

Left([Full Name str],InStr([Full Name Str]," ")) :)

Ta

Mark
 

Users who are viewing this thread

Back
Top Bottom