|
|
![]() | |
|
|
|
To access the contents, click the chapter and section titles.
Peter Norton's Guide to Visual Basic 6
Starting the Design ProcessTo start the process, choose File, New from the menu to open the New Report dialog box. For the sample report you will be using the standard report format; however, Crystal Reports can assist you in creating many different styles of reports from this dialog box:
After selecting the Standard report option and clicking OK, the related Report Wizard is automatically started. For the style selected, seven steps are involved in creating the initial report (see Figure 14.8).
Choosing a Database The logical starting point of any report is to select the database tables required for the report. The first tab of the wizard displays the data access choices and any tables already included in the report. To select the data source for the report you are building, select the Data File button to display the Choose Database File dialog box (see Figure 14.9).
Setting the Relationships After you select the database, all the tables and queries available in the database are added to the report. If you see the wizard in the background, you will see the tables and queries listed. Click the Done button to return to the wizard. You are then automatically taken to the wizards second tab.
The Links tab of the Report wizard enables you to modify the join information that is already defined in the database. Because the Northwind database already has the join information defined, the joins are displayed (see Figure 14.10). On this tab, a message is displayed, enabling you to add more tables if needed.
Selecting the Fields for the ReportIf the joins are correct, click the Next button to continue to the Fields tab. The Fields tab (see Figure 14.11) enables you to select the fields from each of the tables you need in the report. You add the fields to the report data list by double-clicking each field in the Database Fields list or by highlighting the fields you want and clicking the Add button. In addition, you can position the fields in the report. For each field selected, you can also enter a custom column heading in the text box below the list. Select the fields listed in Table 14.3 and add them to the fields list for the report.
|
|||||||||||||||||||||||||||||||||||||||||||||
|
Products | Contact Us | About Us | Privacy | Ad Info | Home
Use of this site is subject to certain Terms & Conditions, Copyright © 1996-2000 EarthWeb Inc. All rights reserved. Reproduction whole or in part in any form or medium without express written permission of EarthWeb is prohibited. |