ACC: Unexpected Pointer Behavior in Text Box with Input Mask

ID: Q114507


The information in this article applies to:


SYMPTOMS

Novice: Requires knowledge of the user interface on single-user computers.

When you click in a text box that has a defined InputMask property, the insertion point remains where it was in the text box when you clicked the mouse button instead of moving to the beginning of the text box. This occurs whether there is data in the text box or not.


RESOLUTION

Press F2 to place the insertion point at the beginning of the text box, or use the TAB key to navigate to the text box instead of clicking in the text box.


STATUS

This behavior is by design.


MORE INFORMATION

An input mask uses predefined place holders in the text box. If you press TAB or press ENTER to move to the text box, the insertion point is placed at the beginning of the input mask. If you enter the text box by clicking in it, the insertion point remains where it was when you clicked the mouse button.

You can make the insertion point move to the beginning of the text box by automatically pressing F2 when a text box is entered. To do this, create a macro with the following action and call it from the text box's OnClick property:


   SendKeys

      Keystrokes: {F2}
      Wait: No 


REFERENCES

For more information about macro basics, search the Help Index for "macros," and view the available help topics, or ask the Microsoft Access 97 Office Assistant.


Keywords          : FmsProp 
Version           : 2.0 7.0 97
Platform          : WINDOWS 
Issue type        : kbprb 

Last Reviewed: April 3, 1999