PC Review


Reply
Thread Tools Rate Thread

Printing report WITHOUT viewing it

 
 
Jake
Guest
Posts: n/a
 
      30th Jan 2004
Hi

I wish to print the contents of a report by pressing a button on a form
WITHOUT viewing the report on screen

Could somebody advise me of the code which I need to add to the click event
of my form's button in order to do this?

Many thanks

Jake


 
Reply With Quote
 
 
 
 
Albert
Guest
Posts: n/a
 
      30th Jan 2004
Just use
DoCmd.OpenReport "Your Report Name", acViewNormal

Please see help file for OpenReport method. There are more option parameters
you may use.

HTH

"Jake" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi
>
> I wish to print the contents of a report by pressing a button on a form
> WITHOUT viewing the report on screen
>
> Could somebody advise me of the code which I need to add to the click

event
> of my form's button in order to do this?
>
> Many thanks
>
> Jake
>
>



 
Reply With Quote
 
=?Utf-8?B?QmFzaWw=?=
Guest
Posts: n/a
 
      30th Jan 2004
DoCmd.OpenReport "<Report Name>", acViewNormal (follow with any filters here)

acViewNormal is the default so it is not necessary to type it. To view use acViewPreview

Baz
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Viewing and Printing a report =?Utf-8?B?RGFsZQ==?= Microsoft Access Reports 0 7th Feb 2007 12:50 PM
Printing report b after report a prints using report a's variables =?Utf-8?B?QmxhemU=?= Microsoft Access Reports 0 8th Feb 2006 10:46 PM
Printing - Viewing =?Utf-8?B?QW1vdXI=?= Microsoft Access Reports 3 3rd Oct 2005 08:12 PM
printing and viewing Sam Microsoft Excel Programming 2 31st Jan 2005 09:26 PM
access 97 graph report, viewing & printing, right side truncated kengi Microsoft Access Reports 0 19th Jul 2003 03:12 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:53 PM.