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 beginning of the text when a user clicks a textbox on the form that contains an input mask?
Answer:
Add the following VBA code to the OnClick Event of the Textbox.
Code:
Private Sub YourTextBox_Click()
      Me.YourTextBox.SelStart = 0
End Sub