Printing Problem

mapat

Registered User.
Local time
Yesterday, 22:09
Joined
Feb 2, 2007
Messages
176
hello,

I have a form which has a "Printing Button" The printing button has to print (through a macro) a report that I created based on the form's information. Now, it works perfect on the PC I work on (which has ACCESS 2007), but it gives me an error when hitting the same button from a PC using the runtime version (with no ACCESS 2007 installed).

The error is:
The command or action 'Print' isn't available now.


The code of the macro that executes when hitting the button is:

SelectObject Report, PersonalUncompleted Tasks, Yes
RunCommand Print

How would I fix this?

Thank you very much
 
Print Problem

Not had dealings with A2007 so not sure i can help....

But have you tried printing the report by opening it with an Eventprocedure like this.

DoCmd.OpenReport "ReportName", acViewNormal, "", ""
 

Users who are viewing this thread

Back
Top Bottom