• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

3. Reports > 3.2. Print the Value of a Parameter on a Report

3.2. Print the Value of a Parameter on a Report

Problem

You’ve created a report based on a parameter query that prompts the user for one or more parameters when the query is run. The report works just fine, but you’d like to be able to document somewhere on the report what parameter values were entered by the user. That way you’ll know, for example, which years’ records are included in the report. Is there any way to do this with Access?

Solution

You can print the values of query parameters on a report by referring to the parameters as if they were fields in the underlying query. This solution shows you how to create controls on a report that document the user-entered runtime parameters.

Load the 03-02.MDB database and open the qryAlbumsPrm query in design mode to verify that this query has three parameters (Figure 3-3). Now open the rptAlbumsPrm in preview view. Because this report is based on qryAlbumsPrm, you will be prompted for the three parameters.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint