I'm trying to use DoCmd.SendObject to send an email alert when a user adds a new record to a certian table. Problem is that when I run my little email subroutine, all I get is an error message that says:
"Object doesn't support this property or method"
Here's what my code looks like...if anyone can help with this I would greatly appreciate it.
"Object doesn't support this property or method"
Here's what my code looks like...if anyone can help with this I would greatly appreciate it.
Code:
Public Sub SendEmailAlert()
Dim mailRecipient As String
Dim mailSubject As String
Dim mailBody As String
Dim mailHeader As String
Dim mailInfo As String
mailRecipient = "email@email.com"
mailSubject = "DM Design Request for Approval"
mailHeader = "Long string"
mailInfo = "Long string
mailBody = mailHeader & vbCrLf & vbCrLf & mailInfo
DoCmd.SendObject , , , , mailRecipient, , , mailSubject, mailBody, False
End Sub