Solved

Mask Edit Box / Date Validation

Posted on 1998-12-30
3
319 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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
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…

708 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

11 Experts available now in Live!

Get 1:1 Help Now