ACC2002: Name AutoCorrect Does Not Repair Certain Form or Report Property Settings (275063)



The information in this article applies to:

  • Microsoft Access 2002

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

This article applies only to a Microsoft Access database (.mdb).

SYMPTOMS

After you rename fields within a table, you open a form or report that is based on that table and you are prompted to enter parameter values. When you check the design of your form, you find that all the controls on the form have been properly fixed by Name AutoCorrect.

CAUSE

Name AutoCorrect does not automatically fix the values in certain form properties, such as the Filter and OrderBy properties.

RESOLUTION

You must manually set these properties to the new values.

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

MORE INFORMATION

The AutoCorrect feature in Microsoft Access 2002 does not fix or repair certain property settings in an Access form or report. For example, the Filter property of a form contains the name of a field in a table. If you then change the name of that field in the table, the AutoCorrect feature does not automatically change the field name in the Filter property of the form.

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.

Steps to Reproduce the Behavior

  1. Open the Northwind sample database.
  2. On the Tools menu, click Options.
  3. In the Options dialog box, click the General tab. Make sure that the Perform name AutoCorrect check box is selected, and then click OK.
  4. On the View menu, point to Database Objects, and then click Forms.
  5. Open the Orders form in Design view.
  6. In the property sheet for the form, click the All tab.
  7. Set the Filter property as follows:

    [CustomerID] = 'BERGS'

  8. Scroll down to the OnLoad property, and then click the Build (...) button. In the Choose Builder dialog box, click Code Builder, and then click OK.
  9. Type or paste the following code:
    Private Sub Form_Load()
       Me.FilterOn = True
    End Sub
    					
  10. On the File menu, click Close and Return to Microsoft Access.
  11. On the View menu, click Form View. Note that the form is filtered to display only records for Berglunds snabbkop.
  12. Close the form, and when you are prompted to save changes, click Yes.
  13. Open the Orders table in Design view, and then change the CustomerID field name to Customer ID by inserting a space between Customer and ID.
  14. Close the table and when you are prompted to save changes, click Yes.
  15. Open the Orders form in Form view. Note that you are prompted with an "Enter Parameter Value" prompt for CustomerID.

Modification Type:MajorLast Reviewed:11/5/2003
Keywords:kbbug kbnofix KB275063