Re: Automate *.pdf (multiple reports) to send from Access thru MS Outlook
After hours of search I found this excellent code from Trevor G and have used it on a new project. Its perfect for me with 1 exception.
I would like it to be able to filter the reports by user. currently it sends the same attachments to everyone I email
It would like something like
DoCmd.OutputTo acOutputReport, "rptinvoice", acFormatPDF,invoiceid = me. invoiceid "F:\destination\rptinvoice.pdf", False or
strAttach1 = "F:\destination\rptinvoice.pdf" &me.invoiceid =invoiceid
but whatever combination i use fails
the original thread was started by pnevilm
and the reply date was 10-11-2010, 10:23 AM
After hours of search I found this excellent code from Trevor G and have used it on a new project. Its perfect for me with 1 exception.
I would like it to be able to filter the reports by user. currently it sends the same attachments to everyone I email
It would like something like
DoCmd.OutputTo acOutputReport, "rptinvoice", acFormatPDF,invoiceid = me. invoiceid "F:\destination\rptinvoice.pdf", False or
strAttach1 = "F:\destination\rptinvoice.pdf" &me.invoiceid =invoiceid
but whatever combination i use fails
the original thread was started by pnevilm
and the reply date was 10-11-2010, 10:23 AM