Is there a way to have a date input field automatically input a "/" between the month/day/year?
My current form has subs to ensure that the date is entered in a correct date format and it also checks to make sure that the entry is written as mm/dd/yyyy, however I wanted to do away with the user needing to manually input the "/" altogether and have not found a workable solution in my research and testing. Any helpful solutions are greatly appreciated.
Thank you!
If Me.TourDateText.Value = "" Then
MsgBox "Please enter Tour Date.", vbExclamation, "frmEntry"
Me.FirstNameText.SetFocus
Exit Sub
End If
With Me.TourDateText
If Not IsDate(.Value) Then
.SetFocus
MsgBox "Enter a valid date"
Exit Sub
End If
End With
If Not IsDate(Me.TourDateText.Value) Then
MsgBox "The Tour Date field must contain only dates in the format mm/dd/yyyy.", vbExclamation, "frmEntry"
Me.TourDateText.SetFocus
Exit Sub
End If