Logo

My Access Tips for Custom Microsoft Access

Application Development

by Matthew V Carmichael


Need Help?

My Tips


Links

Resources
Quick Tip Details
Question:
How do I automatically place the cursor at the end of the text when a user enters a textbox on the form?
Answer:
Add the following VBA code to the OnEnter Event of the Textbox.
Code:
Private Sub YourTextBox_Enter()
      Me.YourTextBox.SelStart = Me.YourTextBox.SelLength
End Sub