Used to print a report of all invoices - Now the client wants selected invoices to be send email.
I can DoCmd.OpenReport "Invoices" with a WHERE ID=123 ad print a single invoice
but there doesn't seem to be a WHERE option with the
DoCmd.SendObject acSendReport, "Invoices"
So I figured I would apply a filter to the report
Reports!Invoices.Filter = "ID=123"
... not having much luck. Seems to want the report to be open in order to change the filter...
Basically I want to create a loop that sets a filter, sends a page of the report to outlook. Suggestions?
I can DoCmd.OpenReport "Invoices" with a WHERE ID=123 ad print a single invoice
but there doesn't seem to be a WHERE option with the
DoCmd.SendObject acSendReport, "Invoices"
So I figured I would apply a filter to the report
Reports!Invoices.Filter = "ID=123"
... not having much luck. Seems to want the report to be open in order to change the filter...
Basically I want to create a loop that sets a filter, sends a page of the report to outlook. Suggestions?