Solved

Mask edit won't work

Posted on 1998-08-18
1
186 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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
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 process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

743 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

12 Experts available now in Live!

Get 1:1 Help Now