P
Pauli G
Hello,
I'm creating an MS Access form for employees to use when reporting
errors with our GIS (geographic information systems) data. One
option I'd like to add to the form is the ability to automatically
email an error report to the GIS personnel so that they instantly know
when there's a data error/issue. I've been able to figure out how to
make a button that creates an Outlook message with an attachment of
the error report, but I'd like for this email message to automatically
have two email addresses populated in the "To:" field of Outlook. I'm
just not sure how to do this.
Here is the script that I am using to create the email message:
Private Sub EMail_Report_Click()
On Error GoTo Err_EMail_Report_Click
Dim stDocName As String
stDocName = "error reporting"
DoCmd.SendObject acReport, stDocName
Exit_EMail_Report_Click:
Exit Sub
Err_EMail_Report_Click:
MsgBox Err.Description
Resume Exit_EMail_Report_Click
End Sub
I'm creating an MS Access form for employees to use when reporting
errors with our GIS (geographic information systems) data. One
option I'd like to add to the form is the ability to automatically
email an error report to the GIS personnel so that they instantly know
when there's a data error/issue. I've been able to figure out how to
make a button that creates an Outlook message with an attachment of
the error report, but I'd like for this email message to automatically
have two email addresses populated in the "To:" field of Outlook. I'm
just not sure how to do this.
Here is the script that I am using to create the email message:
Private Sub EMail_Report_Click()
On Error GoTo Err_EMail_Report_Click
Dim stDocName As String
stDocName = "error reporting"
DoCmd.SendObject acReport, stDocName
Exit_EMail_Report_Click:
Exit Sub
Err_EMail_Report_Click:
MsgBox Err.Description
Resume Exit_EMail_Report_Click
End Sub