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  

Printing Question



 
 
Thread Tools Display Modes
  #1  
Old June 27th, 2008, 09:06 PM posted to microsoft.public.access.forms
Golfinray
external usenet poster
 
Posts: 1,597
Default Printing Question

This may seem like a bass-ackward thing to do, but I would like to put a
command button or combo on a form that enters criteria in a query that sets
what is to be printed in a report and then prints it. I have 4 managers, each
with their own data in tables. The query brings all four areas together and
is the source of the form. I have a report that prints all areas at once but
it is 29 pages. I would like to allow each manager to print only their area
without having to build four more reports and put four more command buttons
on the form. Thanks so much!!!!
  #2  
Old June 27th, 2008, 09:23 PM posted to microsoft.public.access.forms
bhicks11 via AccessMonster.com
external usenet poster
 
Posts: 529
Default Printing Question

Not unusual at all. As long as all you have to do is select the criteria to
filter the report by. Just set the Filter to the text or combobox on the
form. Here's an example:

OrderNo=Forms!OrdersFrm.OrderNo

Easy, peasy, lemon squeezy! But I have a feeling it's more complicated than
this?

Bonnie
http://www.dataplus-svc.com

Golfinray wrote:
This may seem like a bass-ackward thing to do, but I would like to put a
command button or combo on a form that enters criteria in a query that sets
what is to be printed in a report and then prints it. I have 4 managers, each
with their own data in tables. The query brings all four areas together and
is the source of the form. I have a report that prints all areas at once but
it is 29 pages. I would like to allow each manager to print only their area
without having to build four more reports and put four more command buttons
on the form. Thanks so much!!!!


--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...forms/200806/1

  #3  
Old June 28th, 2008, 04:24 AM posted to microsoft.public.access.forms
Allen Browne
external usenet poster
 
Posts: 11,706
Default Printing Question

Your idea is a good, flexible interface that makes it easy for the user to
enter any combination of critiera. That's much better than designing dozens
of individual reports.

Once the user has entered their criteria, they click a button that fires off
the report. In the Click event of the button, you build a WhereCondition
string to apply to OpenReport, so the report is filtered the way they want.

Here's a simple example that just filters by date:
Limiting a Report to a Date Range
at:
http://allenbrowne.com/casu-08.html
The second method shows how to build and use the filter string.

Here's a more comprehensive example:
Search form - Handle many optional criteria
at:
http://allenbrowne.com/ser-62.html
Download the example, and spend some time seeing how to build the filter
string. The example applies the filter string to the form itself, but it's
exactly the same to apply the filter to a report.

--
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.

"Golfinray" wrote in message
...
This may seem like a bass-ackward thing to do, but I would like to put a
command button or combo on a form that enters criteria in a query that
sets
what is to be printed in a report and then prints it. I have 4 managers,
each
with their own data in tables. The query brings all four areas together
and
is the source of the form. I have a report that prints all areas at once
but
it is 29 pages. I would like to allow each manager to print only their
area
without having to build four more reports and put four more command
buttons
on the form. Thanks so much!!!!


 




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 04:15 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.