A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Print Macro Definitions



 
 
Thread Tools Display Modes
  #1  
Old November 21st, 2005, 07:08 PM posted to microsoft.public.access.reports
external usenet poster
 
Posts: n/a
Default Print Macro Definitions

I am using the PrintOut Action in my macro because I need to print more than
1 copy of a report BUT I do not want the Users to have to deal with Print
Macro Definition window. How can I disable it?

TIA


"LGropel" wrote:

aaaaahhh!!! That makes sense. I'll give that a try and let you know.
Thanks a ton !!

"Steve Schapel" wrote:

LGropel,

There is no need for the PrintOut action in your macro. The OpenReport
action prints the report. What appears to be happening is that you are
printing the report, via the OpenReport action in the macro, following
which the report is closed, following which the PrintOut action is
applied to the currently active object, which apparently is the macro.
Just remove the PrintOut action form the macro.

--
Steve Schapel, Microsoft Access MVP

LGropel wrote:
I have created a report. Then I created a macro where the first command is
to open the report. The second command is the "Print Out" command. The
report prints as expected. However, when the printing is complete, a dialog
box pops up. The title for the dialog box is "Print Macro Definition".
Within this dialog box is a frame titled "Include For Macro". The frame then
contains three options; Properties, Actions and Arguments, and Permissions by
User and Group.

My ultimate goal here is to have the Windows scheduler to open Access,
execute a macro to print a report, and then shut down Access. It appears
that Access won't shut down because the "PrintOut" command will not complete
until the dialog box is dealt with.


  #2  
Old November 22nd, 2005, 02:53 PM
Bob Miller Bob Miller is offline
Senior Member
 
First recorded activity by OfficeFrustration: May 2005
Posts: 358
Default

You have to use the OpenReport (in Preview), then PrintOut. The Print Macro Definition window opens because you haven't opened the object (Report) to print.
Quote:
Originally Posted by Timeless516
I am using the PrintOut Action in my macro because I need to print more than
1 copy of a report BUT I do not want the Users to have to deal with Print
Macro Definition window. How can I disable it?

TIA


"LGropel" wrote:

aaaaahhh!!! That makes sense. I'll give that a try and let you know.
Thanks a ton !!

"Steve Schapel" wrote:

LGropel,

There is no need for the PrintOut action in your macro. The OpenReport
action prints the report. What appears to be happening is that you are
printing the report, via the OpenReport action in the macro, following
which the report is closed, following which the PrintOut action is
applied to the currently active object, which apparently is the macro.
Just remove the PrintOut action form the macro.

--
Steve Schapel, Microsoft Access MVP

LGropel wrote:
I have created a report. Then I created a macro where the first command is
to open the report. The second command is the "Print Out" command. The
report prints as expected. However, when the printing is complete, a dialog
box pops up. The title for the dialog box is "Print Macro Definition".
Within this dialog box is a frame titled "Include For Macro". The frame then
contains three options; Properties, Actions and Arguments, and Permissions by
User and Group.

My ultimate goal here is to have the Windows scheduler to open Access,
execute a macro to print a report, and then shut down Access. It appears
that Access won't shut down because the "PrintOut" command will not complete
until the dialog box is dealt with.

  #3  
Old November 22nd, 2005, 04:36 PM posted to microsoft.public.access.reports
external usenet poster
 
Posts: n/a
Default Print Macro Definitions

Thanks, it worked
And after giving it some thought Print Preview rather than Print (the
default) makes sense before using the PrintOut action

"Bob Miller" wrote:


You have to use the OpenReport (in Preview), then PrintOut. The Print
Macro Definition window opens because you haven't opened the object
(Report) to print.
Timeless516 Wrote:
I am using the PrintOut Action in my macro because I need to print more
than
1 copy of a report BUT I do not want the Users to have to deal with
Print
Macro Definition window. How can I disable it?

TIA


"LGropel" wrote:

aaaaahhh!!! That makes sense. I'll give that a try and let you
know.
Thanks a ton !!

"Steve Schapel" wrote:

LGropel,

There is no need for the PrintOut action in your macro. The
OpenReport
action prints the report. What appears to be happening is that you
are
printing the report, via the OpenReport action in the macro,
following
which the report is closed, following which the PrintOut action is
applied to the currently active object, which apparently is the
macro.
Just remove the PrintOut action form the macro.

--
Steve Schapel, Microsoft Access MVP

LGropel wrote:
I have created a report. Then I created a macro where the first
command is
to open the report. The second command is the "Print Out" command.
The
report prints as expected. However, when the printing is complete,
a dialog
box pops up. The title for the dialog box is "Print Macro
Definition".
Within this dialog box is a frame titled "Include For Macro". The
frame then
contains three options; Properties, Actions and Arguments, and
Permissions by
User and Group.

My ultimate goal here is to have the Windows scheduler to open
Access,
execute a macro to print a report, and then shut down Access. It
appears
that Access won't shut down because the "PrintOut" command will not
complete
until the dialog box is dealt with.



--
Bob Miller

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro to open print window and set to print entire workbook retseort General Discussion 1 October 27th, 2005 11:00 PM
Create a print macro that would automatically select print area? wastedwings Worksheet Functions 7 August 22nd, 2005 10:36 PM
How to create a Print Macro that selects a printer Barb Powerpoint 2 December 18th, 2004 05:07 PM
Macro to Print Envelopes Al Franz New Users 1 August 4th, 2004 03:44 AM
Need macro to print sheet with multiple repetitions bill_s1416 General Discussion 3 July 23rd, 2004 08:55 PM


All times are GMT +1. The time now is 08:24 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.