Hi,
I have two report layouts that are used to run 12 different reports using where statement.
for example
I use the following code to send Report as a PDF attachment in an email. ReportName, EmailAddress, EmailSubject and EmailBody are all string variables declared and set before the following code is run
How do I use a where statement with the .SendObject procedure? I can't find any details anywhere so perhaps this is not possible with .SendObject. If that is the case is there a different method I can use?
Many Thanks.
I have two report layouts that are used to run 12 different reports using where statement.
for example
Code:
DoCmd.OpenReport "SomeReport", _
acViewPreview, _
, _
"[Something] = " & Something
Code:
'send email DoCmd.SendObject _ acSendReport, _ ReportName, _ acFormatPDF, _ EmailAddress, _ , _ , _ EmailSubject, _ EmailBody, _
Many Thanks.
Comment