Crystal Reports Data Selection Adding Prompting Query Fields
Crystal Reports Data Selection Adding Prompting Query Fields
Note –Most of the actions listed below may be performed in both the Design and the Preview
tabs. The instructions below state the recommended tab to use. If using a different tab, some steps
listed below may not apply.
Note - you only need to add a parameter field if you want the report to prompt you to enter a
value. If there is no need for a prompt (search criteria for that field will always remain the same),
add the search criteria directly to the report by adding/editing a field to the record selection
criteria report.
The Field Explorer dialog box is used to insert fields – it appears on the right-hand side of the
report window. If it is not visible, click on the Field Explorer icon on the toolbar.
1. In the Preview tab, click on the “+” sign next to Parameter Fields in the Field Explorer dialog
box. This will list the current parameter fields (prompting query fields) associated with the
report.
How to add the parameter field to the Report Header Display so the entered value
from the prompting query field will be displayed
1. In the Design tab, decide where you wish to insert the parameter field in the Report or Page
Header - ensure there is enough space.
2. Drag and drop the parameter you just added in the Field Explorer to the Report or Page
Header
BEFORE
AFTER
1. In the Preview tab, select Report > Select Expert > Record.
2. The Select Expert – Record window will open. The current selection criteria for the report
will be displayed along with the associated selection formula.
3. Click on New. The Choose Field window will open listing all fields used in the report followed
by all fields in the associated table(s).
4. Click on the field associated with the newly created parameter field (for example, we created
a prompting query field for activity code, so we now need to select this field in the report).
5. Click on OK.
6. Click to view the pull down options for refining the selection criteria for this field.