First, you want to make sure the textbox's SelectOnEntry is .T. In the click of the textbox put:
if this.parent.class = 'Column' and this.SelectOnEntry
dodefault()
This.SelStart = 0
This.SelLength = 999
NODEFAULT
endif
In the GotFocus of the textbox, put:
if this.SelectOnEntry
dodefault()
endif
>Fox Grid Masters~
>
>I have a grid that allows the user(s) to enter data dynamically. After entering the [first] record, the user hits enter or tab at the last field, and a new duplicate record is created.
>
>Here's the question, the second+ records I want to have the field highlighted and all its text selected so the user(s) can type over it or tab through to the next data element of the record. What code can accomplish this and what event should handle the code?
>
>Thanks in advance
>ML