## Previewing a query

To preview a query, follow the steps below:

1. In the Query Editor window, click the Preview button on the toolbar. The Preview Option dialog will then appear. See the dialog.

2. Specify the options in the dialog to suit your requirements.

   Note: The values shown in the text boxes as soon as the Preview Option dialog appears are the default values. These values can be specified in the Query Editor category in the Options dialog.

3. Click OK. The Preview dialog will then appear. See the dialog.

   Note: If the query has parameters, when you click the OK button, the Enter Parameter Values dialog will be displayed. After you enter the parameter value, the Preview dialog will appear showing the corresponding records.

4. Click , , and to browse the records. If the type of the result set is TYPE_FORWARD_ONLY, the last page button will be disabled until you have browsed the last page.
5. You can print the result set by clicking the Print button on the toolbar. If you want to preview the result set before printing, click the Print Preview button .
6. If you want to set up the page parameters, go to the File menu, and click Page Setup.
7. Click Close on the File menu (or in the upper right corner of the dialog) to close the Preview dialog.

Note: In the Preview dialog, JTable is used to display the result set. When you open the dialog, the result set is cached, and when you close the dialog, the result set is released.