Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to display blank date on a VB form.

Status
Not open for further replies.

cassidybklyn

Programmer
Apr 23, 2007
82
US
Good morning all,
is there a format or way of displaying a blank on a form control (textbox)?

For example, If a date field is blank, I want to display "_/_/2007".

Thanks.
Cassidy
 
Hi Skip,
I don't understand what you mean by 3 textboxes. Could you please clarify?
Basicly I want the form to default to "_/_/2007" until the user enters a desired date.
Thanks.
Cassidy
 
Thanks Skip I see what you mean, but some "Dope" want to be able to see "_/_/2007" in the textbox whenever the date field is blank, so I'm gonna embed "_/_/2007" as a default string to show in the textbox.
Thanks man.
Cassidy.
 



So what good is that gonna do. The text in the box will either INSERT, pushing everything to the right or OVERWRITE, meaning that you still have to get past each SLASH.

Isn't THAT gonna be fun to use!!!

Of course, you COULD write some fancy code to sense where in the box you are: check out the CurX Property.

Skip,

[glasses] [red][/red]
[tongue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top