Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Mask Edit Control & Date

Posted on 1998-11-06
12
Medium Priority
?
319 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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
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

Tech or Treat! - Giveaway

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

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

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

604 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