following on from Douglas's suggestion, another idea would be to prevent
non
"e mail address" items such as " ' * > etc etc. Something like this
should
work.
Private Sub EmailAddress_KeyPress(KeyAscii As Integer)
If KeyAscii = vbKeySpace Or KeyAscii = Asc("'") Or KeyAscii = Asc(">") Or
KeyAscii = Asc("*") Then
KeyAscii = 0
End If
End Sub
You will need to address the items you want to exclude (I have put in a
few
to show you how it works
Good luck
--
Wayne
Manchester, England.
:
You can use the LCase function to convert whatever was input into
strictly
lowercase.
You can use the Replace function to remove any internal spaces.
In other words, try the following in the AfterUpdate event of the
control:
Private Sub txtEmailAddress_AfterUpdate()
Me.txtEmailAddress = LCase(Replace(Me.txtEmailAddress, " ", ""))
End Sub
--
Doug Steele, Microsoft Access MVP
(no private e-mails, please)
My intention is to avoid user to write email addresses like :
[email protected] or
[email protected]
(notice the upper case letter)
or like noone@ theweb.com
(notice that a space after the "@")
I don't need to verify the existence of the email address, just the
spelling.
Thanks
Hi Bobby
I can't see how that would be possible.
eg.
[email protected]
[email protected]
[email protected]
they may all be correct e mail addesses.
Do you have some criteria that may filter the possblities??
--
Wayne
Manchester, England.
:
Dear All
How to check email address spelling that user have input in a text
box
in a
form (not in table/datasheet )
Thanks