Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Reports / Printing / January 2006

Tip: Looking for answers? Try searching our database.

Printing specific records from a Form

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
MB - 12 Jan 2006 21:06 GMT
I have three reports that have the same record source (a query called
EmpandCourse).  The three reports are:

Detail by Employee
Detail by Division
Courses

When a user chooses “Detail by Employee” I would like a dialog box to ask
the user to fill in the employee name.  Then, the report will only show
records for that employee.

I would also like the same for “Detail by Division” whereby the user is
prompted to fill in the Division same, and the report will then show only
records for that Division.

How do I accomplish this?  Do I need to build a separate query for each
report?  By the way, these report choices are on a switchboard.

Thank you so much for your help!

Signature

MB

Pat Hartman(MVP) - 13 Jan 2006 01:36 GMT
If you are currently opening the reports from the standard switchboard built
by the wizard, you'll need to create a form instead.  Add the parameter
field to the form.  Add a button to the form to open the report.  After the
wizard builds the code behind the button, open it in design view so you can
modify it.  You will need to add a where argument to the OpenReport method.
This will cause the report to show only the specified record.
You can see syntax in help or just rely on intellisense as you modify the
code.

>I have three reports that have the same record source (a query called
> EmpandCourse).  The three reports are:
[quoted text clipped - 15 lines]
>
> Thank you so much for your help!
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.