Access Error Checking

Another new feature provided by Access 2003 is the form and report control error-checking feature. This feature allows controls on forms and reports to automatically be checked for errors. Creating and modifying forms in Access is discussed in the Access portion of this book (Part VI) in Lessons 10, 11, and 12; creating and modifying reports is discussed in Lessons 17 and 18.

The form and report error-checking feature is controlled via the Error Checking tab on the Options dialog box. To view the Error Checking properties, follow these steps:

  1. In the Access window, select Tools , then Options . The Options dialog box will open .

  2. Select the Error Checking tab on the Options dialog box (see Figure 4.2).

    Figure 4.2. The form and report error-checking feature.

    graphics/12fig02.jpg

  3. You can turn error checking off (it is on by default), by clearing the Enable Error Checking check box. You can also determine the rules that error checking uses on forms and reports. Clear the appropriate rule check box to disable a rule.

  4. When you have finished viewing the Error Checking properties, click OK to close the Options dialog box.

When you create a form or report in the Design view, labels and controls are created and associated with fields in the tables that make up the database or with formulas that provide summary information. One of the error-checking rules provided by the Error Checking feature is to find labels that are not associated with controls (which are typically associated with a field in a table).

Figure 4.3 shows a label that is not associated with a control. Notice that an error icon has been placed on the label by the Error Checking feature. You can correct the error by clicking on the error icon and selecting a remedy from the list. For example, you can associate the new label with an existing control (a control already on the form) by clicking the Associate Label with a Control menu choice. This opens a list of controls on the form so that you can select the associated control. Other possibilities include Help on this Error , which opens the Help system and provides you with help on the problem, and Ignore Error , which removes the error icon.

Figure 4.3. The Error Checking feature helps spot errors in forms and reports.

graphics/12fig03.jpg

The new Error Checking feature provides you with help in minimizing label and control errors in forms and reports. See the Access section (Part VI) of this book for more about forms and reports.



Microsoft Office 2003 All-in-One
Microsoft Office 2003 All-in-One
ISBN: B005HKSHB2
EAN: N/A
Year: 2002
Pages: 660
Authors: Joe Habraken

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net