Good morning,
I have a few textboxes that the user places dates into. These boxes have a lostfocus sub to convert whats entered into a date.
Now I have a command button that should out these boxes when clicked using the below
However it is not clearing out the box. It leaves the date in the box.
I assume its because it doesn't want to accept a null value, therefore leaves the date in the box. Any suggestions?
I have a few textboxes that the user places dates into. These boxes have a lostfocus sub to convert whats entered into a date.
Code:
Private Sub txtDueDate_LostFocus()
If IsDate(txtDueDate.Text) Then
txtDueDate.Text = Format(txtDueDate.Text, "m/d/yyyy")
End If
End Sub
Code:
txtDueDate.Text = ""
I assume its because it doesn't want to accept a null value, therefore leaves the date in the box. Any suggestions?