ACC2000: AutoCorrect Triggers Change EventID: Q198932
|
Moderate: Requires basic macro, coding, and interoperability skills.
When you use the AutoCorrect feature in Microsoft Access to correct typing
errors automatically, the Change event of a control on a form is triggered
each time that AutoCorrect is invoked. This can cause undesirable results,
such as error messages or continuous looping of the automatic correction.
You can disable AutoCorrect for a text box or a combo box on a form by
setting the control's AllowAutoCorrect property to No. You may want to do this for any text box or combo box on your form that has an event procedure or a macro attached to its Change event.
If you want to disable all or portions of the AutoCorrect feature, click
AutoCorrect on the Tools menu, and change the options in the AutoCorrect dialog box.
Form: TestAuto
-----------------------------
Text box:
Name: Text0
OnChange: [Event Procedure]
Text box:
Name: Text2
Private Sub Text0_Change
Me!Text2.SetFocus
End Sub
Run-time error '2110'
Microsoft Access can't move the focus to the control Text2.
For more information about the AutoCorrect feature, click Microsoft Access Help on the
Help menu, type "Work with AutoCorrection" in the Office Assistant or the Answer Wizard,
and then click Search to view the topics returned.
Additional query words:
Keywords : kbtool kbdta FmsProp
Version : WINDOWS:2000
Platform : WINDOWS
Issue type : kbprb
Last Reviewed: May 13, 1999