S
Stacey
Does anyone know how to change the subject of an access generated email to
reflect whatever is in a table field? This is what I have. I reports that
are auto-sent and I would like the subject to change to match whatever the
user types in the table. Any suggestions is appreciated. Thanks!
Dim strRecipient As String
Dim strSubject As String
Dim strMessageBody As String
strRecipient = strEmail
strSubject = Reports(strOpenbankacct).Caption
strMessageBody = [Forms]![message].[Body]
DoCmd.SendObject acSendReport, strOpenbankacct, acFormatSNP,
strRecipient, , , strSubject, strMessageBody, False
SendReportByEmail = True
reflect whatever is in a table field? This is what I have. I reports that
are auto-sent and I would like the subject to change to match whatever the
user types in the table. Any suggestions is appreciated. Thanks!
Dim strRecipient As String
Dim strSubject As String
Dim strMessageBody As String
strRecipient = strEmail
strSubject = Reports(strOpenbankacct).Caption
strMessageBody = [Forms]![message].[Body]
DoCmd.SendObject acSendReport, strOpenbankacct, acFormatSNP,
strRecipient, , , strSubject, strMessageBody, False
SendReportByEmail = True