Email address validation

G

Guest

Hello,

I'm currently using the following validation rule for emails in my form.

Like '*@*.*' And Not Like '* *'

This is just a simple way to check whether the correct format is being used
for e-mails.

However, I've run into a problem that if a user deletes an e-mail address
that is on the form and wants to leave it blank, it triggers this validation
check. Does anyone know what statement I can write to allow a deleted address
to go through? I can delete the email address from the back table but I don't
want to do that every time.

Thanks!
 
G

Guest

Worked like a charm. Thank you Allen!

Allen Browne said:
Try:
Is Null OR ((Like "*?@?*.?*") AND (Not Like "*[ ,;]*"))

Explanation of this and other rules, see:
Validation Rules
at:
http://allenbrowne.com/ValidationRule.html

--
Allen Browne - Microsoft MVP. Perth, Western Australia

Reply to group, rather than allenbrowne at mvps dot org.

mattieflo said:
Hello,

I'm currently using the following validation rule for emails in my form.

Like '*@*.*' And Not Like '* *'

This is just a simple way to check whether the correct format is being
used
for e-mails.

However, I've run into a problem that if a user deletes an e-mail address
that is on the form and wants to leave it blank, it triggers this
validation
check. Does anyone know what statement I can write to allow a deleted
address
to go through? I can delete the email address from the back table but I
don't
want to do that every time.

Thanks!
 

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