Lesson 3: Formatting a Report (Report Builder 2.0)
After you add a table by using the wizard, you might want to change the default format for data. In this lesson, you will format the currency and date fields and the column headers.
Format the Currency
The summary data for the LineTotal field displays a general number. Format it to display the number as currency.
To format a currency field
Click Design to switch to design view.
Click the cell in the second row (under the column headings row) in the Line Total column and drag down to select all cells that contain [Sum(LineTotal)].
On the Home tab, in the Number group, click the Currency button. The cells change to show the formatted currency.
If your regional setting is English (United States), the default sample text is [$12,345.00].
Click Run to preview your report. The summary value for LineTotal displays as currency.
Next, you will learn to change the date format to use the default format.
Format the Date
The OrderDate field displays date and time information by default. You can format it to display only the date.
To format a date field as the default format
Click Design to return to design view.
Click the cell that contains [OrderDate].
On the Ribbon, on the Home tab, in the Number group, from the drop-down list, select Date.
The cell displays the example date [1/31/2000].
Click Run to preview the report.
The OrderDate value displays in the default Date format. If your regional setting is English (United States), the format is 1/31/2000.
Next, you will learn to change the date format to a custom format.
To change the date format to a custom format
Click Design to return to design view.
Click the cell that contains [OrderDate].
On the Home tab, in the Number group, click the dialog box launcher. The Text Box Properties dialog box opens.
In the Category pane, verify that Date is selected.
In the Type pane, select January 31, 2000.
Click OK.
The cell displays the example date [January 31, 2000].
Click Run to preview your report.
The OrderDate value displays with the name of the month instead of the number for the month.
Next, you will learn to change the column widths.
Change Column Widths
To change the width of table columns
Click Design to return to design view.
Click the table so that column and row handles appear above and next to the table.
The gray bars along the top and side of the table are the column and row handles.
Point to the line between column handles so that the cursor changes into a double arrow. Drag the columns to the size you want. For example, expand the column for Product so that the product name displays on one line.
Click Run to preview your report.
Next Steps
You have successfully completed the Creating a Basic Table Report tutorial. You can use this basic table report as a basis for these other tutorials. See: