Selecting All Text

J

JamesJ

When a text box has the focus how do I programmatically select
all the text in the field. I want to keep the Entering Field Behavior
in Options set at Go to start of field.

Thanks,
James
 
D

Dennis

In the On Enter event of the text box put this code

TextBox.SelLength = Len(TextBox)
 
Top