Solved

Mask Edit Box / Date Validation

Posted on 1998-12-30
3
344 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
  • 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 50 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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 Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

861 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