Hi!
i am trying to validate an email address below. Am i going about it the wrong way? It doesn't recognise a correct email address....any ideas?
thanks!
If txtEmail.Text <> "" Then
Dim iX As Long
iX = InStr(1, strAddress, "@", vbBinaryCompare)
If iX Then If InStr(iX, strAddress, ".", vbBinaryCompare) Then Checkemail = True
If Checkemail = False Then
MsgBox "Please enter a valid Email Address", vbExclamation, "Email Address"
End If
Exit Sub
End If
i am trying to validate an email address below. Am i going about it the wrong way? It doesn't recognise a correct email address....any ideas?
thanks!
If txtEmail.Text <> "" Then
Dim iX As Long
iX = InStr(1, strAddress, "@", vbBinaryCompare)
If iX Then If InStr(iX, strAddress, ".", vbBinaryCompare) Then Checkemail = True
If Checkemail = False Then
MsgBox "Please enter a valid Email Address", vbExclamation, "Email Address"
End If
Exit Sub
End If