Select text in Access like Visual Basic
I am trying to get the text in a control to be selected when the user enters the box so that the user can enter a new number without deleting the text allready in the box.
Here is the code:
Private Sub txtEmployeeNumber_GotFocus()
txtEmployeeNumber.SelStart = 0
txtEmployeeNumber.SelLength = Len(txtEmployeeNumber.Text)
This should work but it isn't. I am using this in a combo box, could that be the problem. If so, how do I do this?
The ever increasingly inaccurately named
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Board List for PC Support.