I have hit a bit of a snag with moving between fields on a form. If I use the <TAB> key the contents of the field is highlighted (as I expect it to be - I selected "Behavior on entering field / Select entire field" in Options / Client Settings. However, if I click on a field, the cursor is placed wherever I click, instead of highlighting the contents of the field. I have plaued with putting this in the On_click event of a field:
It works fine on an ordinary textbox, but on a currency field it selects the "$" and the first number only. Also, it seems like a Herculean task to put code in each textbox's On_Click event throughout the whole system.
Is there an easier way to make Access 2016 highlight the contents of a field when clicking on it?
Code:
FieldName.SelStart = 0
FieldName.SelLength = Len(Me.FieldName)
It works fine on an ordinary textbox, but on a currency field it selects the "$" and the first number only. Also, it seems like a Herculean task to put code in each textbox's On_Click event throughout the whole system.
Is there an easier way to make Access 2016 highlight the contents of a field when clicking on it?