?
Solved

Mask Edit Control & Date

Posted on 1998-11-06
12
Medium Priority
?
313 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
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 210 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

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 was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month14 days, 16 hours left to enroll

770 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