dbTalk Databases Forums  

Print Dialog Box

comp.databases.ms-access comp.databases.ms-access


Discuss Print Dialog Box in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
BamaBlast
 
Posts: n/a

Default Print Dialog Box - 04-07-2010 , 01:24 PM






I am a begginner and have created a database where I work and on one
of the forms I have a Print button that will print a report. Is there
anyway to have that Print button to pull up a Print Dialog box first
so that I can select how many copies to print before it prints the
report?

Thanks

Reply With Quote
  #2  
Old   
PW
 
Posts: n/a

Default Re: Print Dialog Box - 04-07-2010 , 02:05 PM






On Wed, 7 Apr 2010 11:24:39 -0700 (PDT), BamaBlast
<timbwilliams (AT) gmail (DOT) com> wrote:

Quote:
I am a begginner and have created a database where I work and on one
of the forms I have a Print button that will print a report. Is there
anyway to have that Print button to pull up a Print Dialog box first
so that I can select how many copies to print before it prints the
report?

Thanks
The only way I can think of is to bring up the report in preview mode.
The user can press Ctrl+P to bring up the print dialog box.

DoCmd.OpenReport "letInquiryMulti", acPreview

-pw

Reply With Quote
  #3  
Old   
BamaBlast
 
Posts: n/a

Default Re: Print Dialog Box - 04-08-2010 , 10:53 AM



On Apr 7, 3:05*pm, PW <emailaddyin... (AT) ifIremember (DOT) com> wrote:
Quote:
On Wed, 7 Apr 2010 11:24:39 -0700 (PDT), BamaBlast

timbwilli... (AT) gmail (DOT) com> wrote:
I am a begginner and have created a database where I work and on one
of the forms I have a Print button that will print a report. *Is there
anyway to have that Print button to pull up a Print Dialog box first
so that I can select how many copies to print before it prints the
report?

Thanks

The only way I can think of is to bring up the report in preview mode.
The user can press Ctrl+P to bring up the print dialog box.

DoCmd.OpenReport "letInquiryMulti", acPreview

-pw
Thank you for your response. I finally found some code that would do
what I wanted. See below.

DoCmd.OpenReport "RPT_I created", acViewPreview
DoCmd.RunCommand acCmdPrint

Can anyone tell where to get a cheat sheet of "DoCmd." Commands?
I have no idea what are available to use and what they do. I am using
Access 2003.

Thx

Reply With Quote
  #4  
Old   
fredg
 
Posts: n/a

Default Re: Print Dialog Box - 04-08-2010 , 12:21 PM



On Thu, 8 Apr 2010 08:53:36 -0700 (PDT), BamaBlast wrote:

Quote:
On Apr 7, 3:05*pm, PW <emailaddyin... (AT) ifIremember (DOT) com> wrote:
On Wed, 7 Apr 2010 11:24:39 -0700 (PDT), BamaBlast

timbwilli... (AT) gmail (DOT) com> wrote:
I am a begginner and have created a database where I work and on one
of the forms I have a Print button that will print a report. *Is there
anyway to have that Print button to pull up a Print Dialog box first
so that I can select how many copies to print before it prints the
report?

Thanks

The only way I can think of is to bring up the report in preview mode.
The user can press Ctrl+P to bring up the print dialog box.

DoCmd.OpenReport "letInquiryMulti", acPreview

-pw

Thank you for your response. I finally found some code that would do
what I wanted. See below.

DoCmd.OpenReport "RPT_I created", acViewPreview
DoCmd.RunCommand acCmdPrint

Can anyone tell where to get a cheat sheet of "DoCmd." Commands?
I have no idea what are available to use and what they do. I am using
Access 2003.

Thx
For a list and usage of RunCommand constants start at Terry
Wickenden's page:

http://www.accessruncommand.com/index.htm

As far as I know, he has the most complete (even though it's
incomplete) list available.


--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail

Reply With Quote
Reply




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 On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.