My table has the following validation in the "Validation Rule" Section of an Access table that keeps most the email addresses I enter clean:
Like "?@?.??" And Not Like "[!a-z@=.^_$%!#&'`{|}?~/-]" and .
However, it still lets in stuff like Bla.Bla@testing.co.u
I found this link for JavaScript. It does a much better job than mine and would filter out the kind of email addresses mentioned above. How to validate an email address in JavaScript
How would it look for MS Access? Function or Validation rule are fine just interested to know if it is possible.
RegExp is the best way to validate an email.
Here's a VBA function that does it, using the RegExp in the answer that you linked
You have to add a reference to your project :
Microsoft VBScript Regular Expressions X.X
When you want to validate, call the function using
it will return TRUE or FALSE (false in that case)
Hey Thomas thanks alot your function really helped. For everyone else ive just posted how i implemented your function.