Solved

Mask Edit Control & Date

Posted on 1998-11-06
12
297 Views
Last Modified: 2010-04-30
I have a field in an Access database set as a date and with a mask as date mm/dd/yy. On my app I have a masked edit control set to retrieve this field the mask property is set to 99/99/00;0; and the format to mm/dd/yy.  When I run my app it will display 11/24/_8 if the year is set to 98 in the database. If I turn the 98 to 68 it displays fine in the control.  When debugging booth the mask and the database field say 11/24/98. What could be the problem? Thanks.
Tried to remove mask from database but still get the same result.
0
Comment
Question by:robhas
12 Comments
 
LVL 7

Expert Comment

by:Inteqam
ID: 1443658
try to remove the mask from the database.

0
 

Author Comment

by:robhas
ID: 1443659
Removed the mask from the field in the database but it still happens.
0
 

Author Comment

by:robhas
ID: 1443660
Edited text of question
0
 
LVL 7

Expert Comment

by:Inteqam
ID: 1443661
can you provide me with the code ,
to Hanzala@rocketmail.com

0
 

Expert Comment

by:BC111398
ID: 1443662
Try Setting The Input Mask To 99/99/99;0;_
0
 

Author Comment

by:robhas
ID: 1443663
Not the solution, still working at it.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Expert Comment

by:neelam_s
ID: 1443664

 for date
set the format ddddd
and mask is ##/##/##
Now try it.

0
 

Author Comment

by:robhas
ID: 1443665
Does not work.
0
 
LVL 13

Expert Comment

by:Mirkwood
ID: 1443666
Try  ##/##/## ##:##
0
 

Author Comment

by:robhas
ID: 1443667
This answer does not work either.
0
 
LVL 1

Accepted Solution

by:
bear454 earned 70 total points
ID: 1443668
forget the masked edit, use format(value,"Short Date") to represent the data in a standard textbox or label.
If you need to do fomatted input as well, break it into separate text boxes for month, day & year - Use month(value) day(value) and year(value) to return the separate parts of the date.
0
 

Author Comment

by:robhas
ID: 1443669
It gave me very close to what I needed.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to create a duplicate finder Application 9 115
using Access 8 59
bit defender blocks good applications 2 82
Excel - Save a copy of work book 13 83
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
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…
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…

867 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

22 Experts available now in Live!

Get 1:1 Help Now