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 » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Need a button to print 5 copies



 
 
Thread Tools Display Modes
  #1  
Old May 12th, 2010, 03:36 PM posted to microsoft.public.access.forms
Darrell Childress[_3_]
external usenet poster
 
Posts: 32
Default Need a button to print 5 copies

I need to put a button on my form that, when clicked, will print out 5
copies of the current form. I know that it's not wise to print forms,
but there's not much way around this. I currently have a button that
prints out a single copy of the form. Here's the code behind the button:

DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.PrintOut acSelection

I just need an additional button that will print out 5 copies instead of
1, if possible.
Thanks,
Darrell
  #2  
Old May 12th, 2010, 04:04 PM posted to microsoft.public.access.forms
Douglas J. Steele[_3_]
external usenet poster
 
Posts: 3,143
Default Need a button to print 5 copies

Would you believe

DoCmd.PrintOut acSelection, copies:=5

Note the colon in front of the equal sign. That eliminates the necessity of
putting place holders for the various preceding parameters for which you
aren't providing values.

--
Doug Steele, Microsoft Access MVP
http://www.AccessMVP.com/DJSteele
(no e-mails, please!)

"Darrell Childress" wrote in message
...
I need to put a button on my form that, when clicked, will print out 5
copies of the current form. I know that it's not wise to print forms, but
there's not much way around this. I currently have a button that prints out
a single copy of the form. Here's the code behind the button:

DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.PrintOut acSelection

I just need an additional button that will print out 5 copies instead of
1, if possible.
Thanks,
Darrell



  #3  
Old May 12th, 2010, 04:13 PM posted to microsoft.public.access.forms
Darrell Childress[_3_]
external usenet poster
 
Posts: 32
Default Need a button to print 5 copies

Wow, that was simple...thank you!

On 5/12/10 11:04 AM, Douglas J. Steele wrote:
Would you believe

DoCmd.PrintOut acSelection, copies:=5

Note the colon in front of the equal sign. That eliminates the necessity of
putting place holders for the various preceding parameters for which you
aren't providing values.


 




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 12:00 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.