Solved

Mask edit won't work

Posted on 1998-08-18
1
190 Views
Last Modified: 2012-05-04
I have a masked edit control connected to a VB data control (which addresses a date field in an Access database). No matter what I set the .format property to on the mask edit control, the date always appears as mm/dd/yy ( I want it to be mm/dd/yyyy.  Is this control buggy or am I doing something wrong?
0
Comment
Question by:tisd
1 Comment
 
LVL 1

Accepted Solution

by:
blwatkins earned 50 total points
ID: 1429679
On way to correctly displayy mm/dd/yyyy in a masked edit control is to use the "ddddd" (5 d's) as the format value.

Second, you have to change the computer's short date format to include the century:

goto your control panel and double click on Regional Settings, then select the Date Tab, finally in the middle section "Short Date" read "mm/dd/yyyy".

This will then display the entire year in your masked edit box.

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now