Avatar of Jeffrey Davidson
Jeffrey Davidson

asked on 

How do I make a form textbox with a vertical scroll bar, scroll to the end.

Using Access 2016 I have a form with a textbox control on it. I set it to have a vertical scroll bar. I've tried several suggestions, from adding code in the got focus event to making a function to reposition the textbox text position. Nothing has worked, I decided to let the experts here try to resolve this.

This snippet didn't work, it doesn't throw an error but it also doesn't reposition the text's position on the screen.
Private Sub txtAdditionalTaskInfo_GotFocus()
    txtAdditionalTaskInfo.SelStart = txtAdditionalTaskInfo.Text.Length + 1
End Sub

Open in new window

* MS Access VBA EventsMicrosoft Access

Avatar of undefined
Last Comment
Éric Moreau

8/22/2022 - Mon