Solved

Mask Edit Control & Date

Posted on 1998-11-06
12
309 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
[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
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
Independent Software Vendors: 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!

 
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
 

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

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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…

688 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