Bob. Am new to this! Did you mean "put in the OnClick event" not GotFocus?
I can get it to work on the onclick but not gotfocus. Am I missing some point here? I know default action on using Tab to enter a field is to select all the text and this property can be changed [see PeterF - above]. But my problem was to get the whole field/text selected when clicking with a mouse, which your code fixes [using onclick]. Thanks David