Dave Punky
Board Regular
- Joined
- Jan 7, 2010
- Messages
- 133
Hi all,
I'm trying to format a textbox so it will only display a date in the format "dd/mm/yyyy" and if the user has not entered the date in this format then once they exit the textbox it will revert to a blank box.
Annoyingly I can't just use Format(textbox.value,"dd/mm/yyyy") = False because it's just looking at the textbox value.
How can I get around this so it knows that it's either a date in the dd/mm/yyyy format or a blank string?
Many thanks.
I'm trying to format a textbox so it will only display a date in the format "dd/mm/yyyy" and if the user has not entered the date in this format then once they exit the textbox it will revert to a blank box.
Annoyingly I can't just use Format(textbox.value,"dd/mm/yyyy") = False because it's just looking at the textbox value.
How can I get around this so it knows that it's either a date in the dd/mm/yyyy format or a blank string?
Many thanks.