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

Custom Printer Dialog Box?



 
 
Thread Tools Display Modes
  #1  
Old August 2nd, 2005, 08:25 PM
Roger Tregelles
external usenet poster
 
Posts: n/a
Default Custom Printer Dialog Box?

Hi Folks,

I would like to create a new custom printer dialog box when users go to
print out reports in the front end of my databases. The current printer
dialog box in Access makes it way to easy to print out all of the records by
accident (has happened to a few users). I would prefer a dialog box that
defaults to “print current page” and also lets you input a print range. How
difficult would this be to do? I assume you would need to create a custom
function in VBA and then link the print command to this new function. Has
anyone already created something similar to this that I could model mine
from? Any help, suggestions or ideas would be greatly appreciated. Thanks in
advance.

Roger Tregelles
Quality Assurance Engineer
Respironics Inc.
  #2  
Old August 3rd, 2005, 01:27 PM
Allen Browne
external usenet poster
 
Posts: n/a
Default

Roger, you can easily create a little unbound form in Access to use as a
print dialog.

Most users grow out of the idea of printing forms very quickly, and realise
they need to set up a report laid out as desired for print. Your command
button will therefore use the OpenReport method, and will use the
WhereCondition argument to limit the print out to just one record, or to a
range of records.

For an example of how to build the WhereCondition and print a single record,
see:
Print the record in the form
at:
http://allenbrowne.com/casu-15.html

For an example of how to build the WhereCondition to print a range of
records, see:
Limiting a Report to a Date Range
at:
http://allenbrowne.com/casu-08.html

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Roger Tregelles" wrote in
message
...

I would like to create a new custom printer dialog box when users go to
print out reports in the front end of my databases. The current printer
dialog box in Access makes it way to easy to print out all of the records
by
accident (has happened to a few users). I would prefer a dialog box that
defaults to "print current page" and also lets you input a print range.
How
difficult would this be to do? I assume you would need to create a custom
function in VBA and then link the print command to this new function. Has
anyone already created something similar to this that I could model mine
from? Any help, suggestions or ideas would be greatly appreciated. Thanks
in
advance.

Roger Tregelles
Quality Assurance Engineer
Respironics Inc.



  #3  
Old August 3rd, 2005, 06:35 PM
Roger Tregelles
external usenet poster
 
Posts: n/a
Default

Allen,

That works perfectly! I love it, great solution! Thank you so much for your
help and assistance with this problem.

Could you recommend any good Access books to help me develop my skills
further? Thanks again, I really do appreciate it.



Roger Tregelles
Quality Assurance Engineer
Respironics Inc.


  #4  
Old August 4th, 2005, 02:21 AM
Allen Browne
external usenet poster
 
Posts: n/a
Default

There's heaps of books on the market, and it kinda depends what you need.

One I'm using to teach Access is "Microsoft Access 2003 Inside Out" by John
Viescas (Microsoft Press, 2005). It's straight forward enough that you can
get into it with a basic knowledge of Access, and it takes you well along
the journey.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Roger Tregelles" wrote in message
...

That works perfectly! I love it, great solution! Thank you so much for
your
help and assistance with this problem.

Could you recommend any good Access books to help me develop my skills
further? Thanks again, I really do appreciate it.



Roger Tregelles
Quality Assurance Engineer
Respironics Inc.



  #5  
Old August 4th, 2005, 02:12 PM
Roger Tregelles
external usenet poster
 
Posts: n/a
Default

Allen,

Thanks for the book recommendation. I actually have another book already by
John Viescas entitled "Building Access Applications" which comes with 4
complete databases he created and which he takes you through the process of
creation step by step. It's very well done. I'm going to look into getting
this other book too. Thanks again for your help, and your excellent Web
site. Keep up the great work, I really do appreciate it. Take care.

Roger Tregelles
Quality Assurance Engineer
Respironics Inc.


 




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
problem with the default printer changing Rose General Discussions 0 July 6th, 2005 06:02 PM
custom dialog for parameter query Stan Running & Setting Up Queries 2 June 17th, 2005 03:58 PM
Custom Menu - Open Print Dialog Rosco General Discussion 2 March 17th, 2005 04:59 PM
change default printer of a report Rodolfo Fontes Setting Up & Running Reports 10 August 2nd, 2004 09:20 PM
Access 2000: No events when hiding & reopening dialog box-a glitch in attempt to speed up app Matt Jaffey Using Forms 11 June 11th, 2004 09:09 PM


All times are GMT +1. The time now is 05:26 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.