exported report name based on report fields?

G

Guest

Is it possible to pass the values of fields within the report in naming the
report for my outputto saving option?

I would like to include my invoicenumber and orderdate on the reportname?

Any ideas? suggestions?

Thanks,

Brook
 
G

Guest

create something like this:

DoCmd.OutputTo acOutputQuery, _
"MyReport", _
acFormatXLS, _
"MyReport-Invoice_" & Forms!parameters_frm!invoice &
"_Order_Date_" & Forms!parameters_frm!orderdate & ".xls"

change the paramenters_frm with your form sending the parameters to the query
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top