Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Including Parameter Values in an  Access Report Microsoft Office Training Access Training
The task at hand… <ul><li>This exercise is for Access users who have some experience with parameter queries and creating t...
The steps <ul><li>There are three main steps we need to complete to demonstrate this: </li></ul><ul><li>1) Create a table ...
The Employees Table <ul><li>Create a new table and save it as tblEmployees.  The table will need to hold the following fie...
The Employees Table <ul><li>Enter the following records into this table </li></ul><ul><li>EmployeeID FirstName LastName Lo...
Create a Parameter Query <ul><li>Create a query based on this table, adding all the fields to the query grid.  Then add th...
Create a Parameter Query <ul><li>ParaLoc  is just the name we have given our new column – it’s not a special function or a...
Create the Report <ul><li>Create a report based on this query using the Report Wizard.  Use all the fields except maybe th...
Create the Report <ul><li>Print preview the report:  the parameter value that you entered for the location should appear i...
More Access Tutorials <ul><li>For more  Access Tutorials  visit the Blue Pecan Free  Microsoft Office Training  page. </li...
Upcoming SlideShare
Loading in …5
×

Including Parameter Values In An Access Report

9,216 views

Published on

This tutorial is for Access users who have some experience with parameter queries and creating their own reports. A parameter prompts the end user to enter criteria each time the query is run. This exercise shows you how to display the parameter value that is given by the end user in the heading of a report based on the query.

Published in: Technology, Business
  • Be the first to comment

  • Be the first to like this

Including Parameter Values In An Access Report

  1. 1. Including Parameter Values in an Access Report Microsoft Office Training Access Training
  2. 2. The task at hand… <ul><li>This exercise is for Access users who have some experience with parameter queries and creating their own reports. A parameter prompts the end user to enter criteria each time the query is run. This exercise shows you how to display the parameter value that is given by the end user in the heading of a report based on the query. </li></ul>
  3. 3. The steps <ul><li>There are three main steps we need to complete to demonstrate this: </li></ul><ul><li>1) Create a table </li></ul><ul><li>2) Create a parameter query based on the table </li></ul><ul><li>3) Create a report based on the query </li></ul>
  4. 4. The Employees Table <ul><li>Create a new table and save it as tblEmployees. The table will need to hold the following fields which you should create in design view: </li></ul><ul><li>Field Name Data Type </li></ul><ul><li>EmployeeID AutoNumber </li></ul><ul><li>FirstName Text </li></ul><ul><li>LastName Text </li></ul><ul><li>Location Text </li></ul><ul><li>Set Employee ID as the primary key </li></ul>
  5. 5. The Employees Table <ul><li>Enter the following records into this table </li></ul><ul><li>EmployeeID FirstName LastName Location </li></ul><ul><li>1 Andy Bean London </li></ul><ul><li>2 Claire Doubt London </li></ul><ul><li>3 Enid Fairview Brighton </li></ul><ul><li>4 Geoff Hall Brighton </li></ul><ul><li>5 Ivan Jones London </li></ul><ul><li>Close the table </li></ul>
  6. 6. Create a Parameter Query <ul><li>Create a query based on this table, adding all the fields to the query grid. Then add the following parameter for the Location field. </li></ul><ul><li>[Which location?] </li></ul><ul><li>Then in the next available column in the query grid type the following into the Field row </li></ul><ul><li>ParaLoc:[Which location?] </li></ul>
  7. 7. Create a Parameter Query <ul><li>ParaLoc is just the name we have given our new column – it’s not a special function or anything like that. If you are experienced user of parameter queries you may wonder we have created this column. Well essentially it is so we can store the parameter value in a field and then refer to that field in the report. </li></ul><ul><li>Save the query as qryLocation and close it. </li></ul>
  8. 8. Create the Report <ul><li>Create a report based on this query using the Report Wizard. Use all the fields except maybe the EmployeeID field. Once the report has been created switch to design view and in the report header delete the current report heading including its box. </li></ul><ul><li>Open the form toolbox and draw a text box where the report heading used to be. Delete the label for the text box and then type the following into the text box: </li></ul><ul><li>=“Employees Report for&“ ”&[What Location?] </li></ul>
  9. 9. Create the Report <ul><li>Print preview the report: the parameter value that you entered for the location should appear in the heading of the report. </li></ul><ul><li>For example if you entered London as your location, the heading would read - Employees Report for London </li></ul>
  10. 10. More Access Tutorials <ul><li>For more Access Tutorials visit the Blue Pecan Free Microsoft Office Training page. </li></ul><ul><li>For a direct link to this Access tutorial </li></ul>

×