Output to - Save a report with a name

R

Robert Gillard

I am trying to use a macro "output to" to save a report as a rtf, but I want
each one to save as a name from an open form. I have tried various
combinations but I cannot get it to save as above

C:\my documents\work\"&[forms]![dws]![sender name]&".rtf


Any other suggestions as the above will not work


with thanks

Bob
 
G

Gary Miller

Robert,

You didn't include the full ouput line you are trying, but
the following should work. Beware, I am sure that it will
wrap in the email...

DoCmd.OutputTo acOutputReport, "rptYourReport", acFormatRTF,
"C:\my documents\work\" & [Forms]![dws]![sender name] &
".rtf"

Gary Miller
 

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