M
M_
Hi.
I'd like to send a report via e-mail to only one person, rather than
everyone on the list.
I'd also like to add a subject line, addressees, and e-mail text at the same
time.
This is the closest I've gotten, but it doesn't work.
Private Sub cmdPreviewReport_Click()
On Error GoTo Err_cmdPreviewReport_Click
Dim stDocName As String
stDocName = "Assignment E-Mail"
stLinkCriteria = "[NewEntryID]=" & Me![NewEntryID]
DoCmd.OpenReport stDocName, acPreview, , stLinkCriteria
Exit_cmdPreviewReport_Click:
Exit Sub
Err_cmdPreviewReport_Click:
MsgBox Err.Description
Resume Exit_cmdPreviewReport_Click
End Sub
Thanks for the help.
I'd like to send a report via e-mail to only one person, rather than
everyone on the list.
I'd also like to add a subject line, addressees, and e-mail text at the same
time.
This is the closest I've gotten, but it doesn't work.
Private Sub cmdPreviewReport_Click()
On Error GoTo Err_cmdPreviewReport_Click
Dim stDocName As String
stDocName = "Assignment E-Mail"
stLinkCriteria = "[NewEntryID]=" & Me![NewEntryID]
DoCmd.OpenReport stDocName, acPreview, , stLinkCriteria
Exit_cmdPreviewReport_Click:
Exit Sub
Err_cmdPreviewReport_Click:
MsgBox Err.Description
Resume Exit_cmdPreviewReport_Click
End Sub
Thanks for the help.