ACC97: Formatting and Printing a Table in Microsoft Access (304461)



The information in this article applies to:

  • Microsoft Access 97

This article was previously published under Q304461
Novice: Requires knowledge of the user interface on single-user computers.

This article applies to a Microsoft Access database (.mdb) and to a Microsoft Access project (.adp).

For a Microsoft Access 2000 version of this article, see 304460.

SUMMARY

This article shows you how to format a table, and then how to print it.

MORE INFORMATION

CAUTION: If you follow the steps in this example, you modify the sample database Northwind.mdb. You may want to back up the Northwind.mdb file and follow these steps on a copy of the database.

  1. Start Microsoft Access, and then open the sample database Northwind.mdb.
  2. Open the Customers table in Datasheet view.
  3. With the Customers table open in Datasheet view, try any of the following formatting techniques.

    NOTE: Any formatting that you apply is applied to all rows and all columns.

    Changing the Font
    1. On the Format menu, click Font.
    2. In the Font box, select the font, font style, and size that you want.
    3. Under Effects, you can choose to underline the text by clicking the check box for Underline. To change the color of the font, click the color that you want in the Color box.
    4. A sample of what the text will look like with the changes that you made to the font is shown under Sample.
    5. You can change the script by selecting the script from the drop-down list.
    6. Click OK to apply the changes.

      NOTE: The font is changed for the Column headings as well as for all the data.
    Formatting the Cell Effect and Gridlines of the Datasheet

    1. On the Format menu, click Datasheet.
    2. In the Datasheet Formatting dialog box, you can change the effect of the cells to Flat, Raised or Sunken. If you change the Cell Effect to Raised or Sunken, the Gridlines Shown options become unavailable.
    3. If you want to print your table without gridlines, click to clear the Horizontal and Vertical check boxes under Gridlines Shown.
    4. To change the color of the gridlines and the background, select the color that you want from the list under Gridline Color and Background Color, respectively.
    5. You can also change the border and line style by choosing the border and line style that you want from the list.
    6. Click OK to apply the changes.
    Changing the Row Height

    1. On the Format menu, click Row Height.
    2. In the Row Height dialog box, type the height that you want. The standard height depends on the type and size of the font that you are using.
    3. If you modify the row height and you want to bring it back to the standard height, click to select the Standard Height check box.
    4. Click OK to apply the changes.
    Changing the Column Width

    1. On the Format menu, click Column Width.
    2. In the Column Width dialog box, type the width that you want. The standard width depends on the type and size of the font that you are using. The standard width is the same for all the columns and is based on the first column. If you select Best Fit, each column is sized based on the text for that column.
    3. Click OK to apply the changes.

      NOTE: If you set the column width to 0, the column is hidden. To bring the column back, follow the steps in "Hiding and Unhiding a Column" section later in this article.
    Renaming the Column Headings

    1. Place the mouse pointer in the column that you want to resize.
    2. On the Format menu, click Rename Column.
    3. Type the name that you want for the column, and then press ENTER.

      NOTE
      : When you change a column heading, you are changing the field name and not the caption. The caption is then removed for the field.
    Hiding and Unhiding a Column

    1. Place the mouse pointer in the column that you want to hide.
    2. On the Format menu, click Hide Columns.
    3. To unhide the column, click Unhide Columns on the Format Menu.
    4. In the Unhide Columns dialog box, click the check box for the columns that you want to be visible, and then click Close.

Printing a Table

To print a table, follow these steps:
  1. Open the Customers table in Datasheet view.
  2. On the File menu, click Page Setup.
  3. In the Page Setup dialog box, click the Margins tab. Note that you can adjust the page margins to increase or decrease the information that is printed on each page.
  4. Click the Page tab and note that you can set the Orientation to Portrait or Landscape, depending on how you want to see your information printed.
  5. On the File menu, click Print.
  6. You can choose to print all pages, selected pages, or selected records, based on the option that you select for Print Range.
  7. Click OK to print the table. Note that the table is printed with the formatting options that you have applied.

REFERENCES

For more information about formatting and printing tables, click Microsoft Access Help on the Help menu, type table datasheet view in the Office Assistant or the Answer Wizard, and then click Search to view the topics returned.

Modification Type:MajorLast Reviewed:9/26/2003
Keywords:kbhowto KB304461