Redirecting a report's printer

G

GeorgeMar

I can set a report's printer manually in Access 2002 in
File>PageSetup>Page>Use Specific printer.

I want to do this programmatically and I inserted the
following line in the OnOpen event of the report:

me.Printer=Application.Printers(1)

and I get the error: 2591 that the printer setting cannot
be changed in the OnOpen event.

Can anyone tell me if the line that I have used above will
do the trick and if so, where I should be placing this
line?

many thanks
george
 

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