Hello, I'm using the following code to attach a report to an email. On the button click I get a popup to provide a recordId, once the recordId is given the email opens up and the report is attached.
I would like to be able to pass the recordId in the DoCmd.SendObject. Is that possible?
Dim stDocName As String
stDocName = "DMR_Single View"
DoCmd.SendObject acReport, stDocName, , ""