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!

MaskEdBox Control

Status
Not open for further replies.

dukeslater

Technical User
Jan 16, 2001
87
US
VB6 app using an Access 97 datasource.

We've had some problems with users entering invalid dates, so I wanted to change the text box to a MaskEdBox so that I can define a mask.

At runtime if no mask is defined then the dates stored in the database are reflected properly. However, regardless of the various mask formats I try, once the mask is defined then no data appears.

Every date in the database is stored as m/d/yy, and there is no mask defined in Access

It seems that if there were no records stored already the process would be simple. But how can I determine the proper format to work with the data I already have?

For other reasons I don't want to use a datetime picker here.

I appreciate any help you could give.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top