Solved

Mask edit won't work

Posted on 1998-08-18
1
218 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
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…
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…

691 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