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 a report without displaying print preview



 
 
Thread Tools Display Modes
  #1  
Old January 11th, 2010, 05:13 PM posted to microsoft.public.access.reports
Sarella
external usenet poster
 
Posts: 10
Default Print a report without displaying print preview

Hi,

Please can someone tell me in a really basic way how can I print a report
WITHOUT it also previewing. I'm using 2007

I have several forms which have a print button ( created with the command
button wizard, report operations, print report, then relevant report is
chosen to print). This works great, and prints the relevant report for the
the associated record, however when you click the print button it also
displays the print preview and doesn't close it again. This means that until
the preview is closed the same thing keeps printing when the button is
clicked.

I'm pretty new to all this, but I've managed to looked in the button's
properties, and it's created a macro - runcommand, print. When you click on
that line there is a description called view from which you can choose either
print, design, preview, layout etc, I've tried changing it to all of the
other options, but the only one that makes the report work is preview.



Many thanks for your help

p.s. I did post this query previously, but it's disappeared
  #2  
Old January 11th, 2010, 10:28 PM posted to microsoft.public.access.reports
Al Campagna[_2_]
external usenet poster
 
Posts: 1,462
Default Print a report without displaying print preview

Sarella,
A macro with...
OpenReport
Report Name = rptYourReportName
View = Print
Filter Name = Leave Blank
Where Condition = Leave Blank
should cause a report to print immediately, without any Preview.
I never use macros, but I think if you've set it up like above, then
you might have some other problem.
I tested the above in 2003 and 2007.
--
hth
Al Campagna
Microsoft Access MVP 2006-2009
http://home.comcast.net/~cccsolutions/index.html

"Find a job that you love... and you'll never work a day in your life."



"Sarella" wrote in message
...
Hi,

Please can someone tell me in a really basic way how can I print a report
WITHOUT it also previewing. I'm using 2007

I have several forms which have a print button ( created with the command
button wizard, report operations, print report, then relevant report is
chosen to print). This works great, and prints the relevant report for
the
the associated record, however when you click the print button it also
displays the print preview and doesn't close it again. This means that
until
the preview is closed the same thing keeps printing when the button is
clicked.

I'm pretty new to all this, but I've managed to looked in the button's
properties, and it's created a macro - runcommand, print. When you click
on
that line there is a description called view from which you can choose
either
print, design, preview, layout etc, I've tried changing it to all of the
other options, but the only one that makes the report work is preview.



Many thanks for your help

p.s. I did post this query previously, but it's disappeared



 




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


All times are GMT +1. The time now is 10:51 PM.


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