Solved

Date Formatting

Posted on 1998-09-04
3
136 Views
Last Modified: 2010-04-30
I am using the MaskEdBox to capture a date.
If I use a format mm/dd/yyyy, the data ends up formatted the way I want. But as soon as I add the mask 99/99/9999 so the user does not have to key the /, the format no longer operates. How can I accomplish both?
0
Comment
Question by:BenJr
  • 2
3 Comments
 
LVL 2

Expert Comment

by:BergJC
ID: 1433020
Use the MASKEDBOX1.FormattedText property when you read the input
0
 

Author Comment

by:BenJr
ID: 1433021
Thanks for trying, but I have tried this..... it does not work.... whether I read the Text, ClipText or FormattedText value the _ PromptChar remains and prevents the format function from operating......
0
 
LVL 2

Accepted Solution

by:
BergJC earned 50 total points
ID: 1433022
Would be it be accetable in your application to change the PromptChar to a space?
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
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.
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…

706 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

20 Experts available now in Live!

Get 1:1 Help Now