name of textbox is txt_EnterDate
I want to be able to highlight the text in the textbox when i click into it with mouse, for easy editing
I could just clear it; txt_EnterDate = ""
but the user would need to see what date was previously entered
i've already used
Private Sub txt_EnterDate_GotFocus()
'If txt_EnterDate > "" Then
'txt_EnterDate.SelStart = 0
'txt_EnterDate.SelLength = Len(txt_EnterDate)
'End If
End Sub
Thanks for replies
I want to be able to highlight the text in the textbox when i click into it with mouse, for easy editing
I could just clear it; txt_EnterDate = ""
but the user would need to see what date was previously entered
i've already used
Private Sub txt_EnterDate_GotFocus()
'If txt_EnterDate > "" Then
'txt_EnterDate.SelStart = 0
'txt_EnterDate.SelLength = Len(txt_EnterDate)
'End If
End Sub
Thanks for replies