print macro

G

Guest

Macro done in command button on a form intending to print a report gives error message that database is locked. Macro was set up in ACCESS 2002 to 1)open report; then 2) printout. Are there any other steps?
 
S

Steve Schapel

Macro,

I presume you mean that the report first of all is opened in Print
Preview, and then supposed to Printout. This is not really a good plan.
For one thing, what the Printout macro does is tries to print the
"active object", which you have no way of ensuring that this is your
report at the time. If all you want is the printed report, just use an
OpenReport action, with the View argument set to Print.

Having said this, I do not know whether this is related to your database
locked problem.
 

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