I need a way of achieving the following:
When the user clicks onto a textbox, the text displayed in it is automatically highlighted. This already happens when you tab from one field to the next and allows quick overtyping of the field text without the need to highlight first.
Unless there's some hidden property for a textbox I'm not aware of, I'm guessing I'll need some module with a procedure to achieve this. I've experimented in using tbx.SelLength = Nz(Len(tbx), 0) and this works when I use it from a command button. But when I call it from the GotFocus event it doesn't work.
Any suggestions gratefully received!
TIA,
Chris.
When the user clicks onto a textbox, the text displayed in it is automatically highlighted. This already happens when you tab from one field to the next and allows quick overtyping of the field text without the need to highlight first.
Unless there's some hidden property for a textbox I'm not aware of, I'm guessing I'll need some module with a procedure to achieve this. I've experimented in using tbx.SelLength = Nz(Len(tbx), 0) and this works when I use it from a command button. But when I call it from the GotFocus event it doesn't work.
Any suggestions gratefully received!
TIA,
Chris.