Private Sub cmdEmail_Click()
On Error GoTo Err_cmdEmail_Click
Dim EmlAdd As String
EmlAdd = Me.txtEmail
DoCmd.SendObject , , , EmlAdd
Exit_cmdEmail_Click:
Exit Sub
Err_cmdEmail_Click:
If Err.Number = 2501 Then
Resume Next
Else
MsgBox Err.Description
End If
Resume Exit_cmdEmail_Click
End Sub
If Err.Number = 2501 Then
Resume Next
Else
MsgBox Err.Description
End If