I've this code that automatically puts adds "Mailto" to the email address. When I delete the address it leaves the "Mailto" in the field. Can I get the field to be completely empty if I delete the email address.
Private Sub Email_Exit(Cancel As Integer)
If Not IsNull(Email) And Left$(Email.Text, 7) <> "mailto:" Then
Email.Text = "mailto:" & Email.Text
Else: IsNull (Email)
End If
End Sub
Private Sub Email_Exit(Cancel As Integer)
If Not IsNull(Email) And Left$(Email.Text, 7) <> "mailto:" Then
Email.Text = "mailto:" & Email.Text
Else: IsNull (Email)
End If
End Sub