Printing Database Objects

Sometimes it is unnecessary to go through the process of building a report. It might be sufficient, for example, to simply print the datasheet that shows the result of running a query. Access allows you to print table datasheets, query results, and forms. The following sections cover the process of printing each of these objects.

Printing Table Datasheets

You can easily print a table datasheet. Here's how:

  1. Select Tables in the list of database objects.

  2. Double-click the table whose data you want to print.

  3. Click the Print Preview button to preview the data before you print it or click Print to send the data directly to a printer. As an alternative, if you want to modify print settings, you can select File | Print. The Print dialog box appears (see Figure 5.14). Modify any print settings and click OK to proceed.

    Figure 5.14. The Print dialog box, which allows you to modify print settings.

    graphics/05fig14.jpg

graphics/book_icon.gif

While in Print Preview mode, you can change the page setup options by choosing File | Page Setup. Access does not save these changes when you close Print Preview.


Printing Queries

You can print the datasheet that is the result of running a query by following these steps:

  1. Click Queries in the list of objects in the Database window.

  2. Double-click the query whose result set you want to print.

  3. Click the Print Preview button to preview the data before you print it or click Print to send the data directly to a printer. As an alternative, if you want to modify print settings, you can select File | Print. The Print dialog box appears. Modify any print settings and click OK to proceed.

Printing Forms

When you print a form, you print the data and the layout of the form. Here's how you do it:

  1. Select Form in the list of database objects.

  2. Double-click the form you want to print.

  3. Click the Print Preview button to preview the data before you print it (see Figure 5.15) or click Print to send the form directly to a printer. As an alternative, if you want to modify print settings, you can select File | Print. The Print dialog box appears. Modify any print settings and click OK to proceed.

    Figure 5.15. Previewing a form before you print it.

    graphics/05fig15.jpg

Task: Working with Reports

graphics/todo_icon.gif

It's important that you be able to create a report by using the Report Wizard and that you be able to modify and print that report. This task walks you through that process:

  1. Create a new report based on the Customers table in the Northwind sample database that comes with Access. Use the Report Wizard to do so. The process involves adding the appropriate fields and groupings, selecting a sort order, and selecting a layout and style. The following are the specifics:

    • Add all the fields to the report.

    • Group on the Country field.

    • Sort on the City field.

    • Choose the layout and style you like.

    • Title the report Customers by Country.

  2. Preview the report.

  3. Close the report.

  4. Open the report you just saved.

  5. Print the report.

  6. Close the report. Close the database.

Task: Printing Database Objects

It is important that you be comfortable printing database objects. This task walks you through that process:

  1. Open the NORTHWIND database that ships with Access.

  2. Preview and then print the Customers table.

  3. Preview and then print the Sales by Category query.

  4. Preview and then print the Product List form.

  5. Print the Sales by Category report from the Database window.



    Part III: Creating Your Own Database and Objects
    Part V: Advanced Topics