Move cursor to end of text
Posted on 2012-03-18
I have a subform in single form mode that has a note field. Because I have enter behavior set to highlight field when I move between records, the whole of the note fields text is highlighted. This means that if someone accidentally presses a key on the keyboard the whole note field is deleted to allow new data to be entered. I don't want to alter the default enter behavior because it is usefull elswhere and I don't want to set the focus to another field because that will be highlighted and suffer the same problem.
So what I need in the OnCurrent property of the subform is
If "Notes" (The Note Control) has focus then move cursor to end of field or text.