I have a button that generates a report and sends it by email as a snapshot attachment. My problem is that instead of sending only the record shwoing, all the records in the table are sent.
I tried adding a filter bu I got an error message saying that it was not allowed.
Below is the code I have at present.
Dim stDocName As String
stDocName = "Certificate"
DoCmd.SendObject acReport, stDocName, acFormatSNP
Any help would be appreciated.
I tried adding a filter bu I got an error message saying that it was not allowed.
Below is the code I have at present.
Dim stDocName As String
stDocName = "Certificate"
DoCmd.SendObject acReport, stDocName, acFormatSNP
Any help would be appreciated.