Your email field should be a text field and you could use this.
On Error GoTo Fejl
If Not IsBlank(ItnMail) Then
DoCmd.SendObject , , , ItnMail
End If
Fejl:
If Err = 2501 Then Resume Next
IF your field is now a hyperlink you can use this in your code before docmd.
If InStr(1, ItnMail, "#" Then ItnMail = Left(ItnMail, InStr(1, ItnMail, "#" - 1)
Mail.Requery
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.