Solved

Mask edit won't work

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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

773 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