I'm using the falling code...
Private Sub Command93_Click()
Dim strDocName As String
Dim strWhere As String
strWhere = [Mrecordid] = " & Me!Mrecordid"
DoCmd.SendObject acSendReport, strDocName, acFormatPDF, strWhere
End Sub
It is a button on a report. It sends the report as an attachment but its sending it as the report name. I would like it to send as the [Mrecordid]
What am I doing wrong? Also, can't seem to get To, Subject, etc... to show.
Thanks...
Private Sub Command93_Click()
Dim strDocName As String
Dim strWhere As String
strWhere = [Mrecordid] = " & Me!Mrecordid"
DoCmd.SendObject acSendReport, strDocName, acFormatPDF, strWhere
End Sub
It is a button on a report. It sends the report as an attachment but its sending it as the report name. I would like it to send as the [Mrecordid]
What am I doing wrong? Also, can't seem to get To, Subject, etc... to show.
Thanks...