Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Mask Edit Box / Date Validation

Posted on 1998-12-30
3
Medium Priority
?
355 Views
Last Modified: 2012-06-27
I'm using a maskEdBox with a format of dd-mmm-yyyy and a
mask of ##/##/####. It works fairly fine if I
enter something like "30121998", but if I enter just "30131998" and tab off the control it doesnt check if a valid date has been entered. Is there a switch I can set to force this validation or do I have to write a little checkroutine and call it in the LostFocus of the MEDBox.
0
Comment
Question by:eryan
[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
  • 2
3 Comments
 
LVL 3

Expert Comment

by:vmano
ID: 1453286
ya, i think you have to write a date validation in the lostfocus of that MEDBox. you can probably use IsDate function to check for valid dates. also check for help on IsDate function.

let me know if this helps
vmano

0
 

Author Comment

by:eryan
ID: 1453287
IsDate is perfect. Return me your comment as a suggested solution and I'll forward you the points. Thanks.
0
 
LVL 3

Accepted Solution

by:
vmano earned 200 total points
ID: 1453288
OK.here is (my) same comment as answer.
i think you have to write a date validation in the lostfocus of that MEDBox. you can probably use IsDate function to check for valid dates. also check for help on IsDate function.

let me know if this helps
vmano
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
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.
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…
Suggested Courses

636 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