Solved

Microsoft Access form date format

Posted on 2013-11-27
15
1,538 Views
Last Modified: 2013-12-01
Two questions.
I have a date field with the format of mm/dd/yyyy;h:nn.  When the record is displayed the time is blank until you place the cursor in the field.  How do I get it to display always?

In the field properties I tried placing the above format in the "input mask", but it doesn't work.  I want the user to know how to format the date/time.  How?
datebox.png
0
Comment
Question by:jrsitman
  • 7
  • 4
  • 4
15 Comments
 
LVL 119

Expert Comment

by:Rey Obrero
Comment Utility
open the table in design view, select the Date field and set the Format to "General Date"
0
 
LVL 49

Expert Comment

by:Gustav Brock
Comment Utility
Use the Format property of the textbox you use for display. Set it to:

mm/dd/yyyy h:nn

/gustav
0
 

Author Comment

by:jrsitman
Comment Utility
When I enter the date in the field the mask displays but I can't change the time.  When I try to type the time in the text will not change.  I've tried the both the number pad and numbers above the letters.  It won't even let me backspace over the time text.
input-mask.png
0
 
LVL 119

Expert Comment

by:Rey Obrero
Comment Utility
upload a copy of your db
0
 
LVL 49

Accepted Solution

by:
Gustav Brock earned 400 total points
Comment Utility
An input mask is very different from a Format property. It is not very well suited for entering date and time.

You could try with this mask:
00/00/0000 00:00

Study the examples in the on-line help.

/gustav
0
 

Author Comment

by:jrsitman
Comment Utility
@cactus_data.  Yours worked.  Can you send one that will show am/pm?

Thanks
0
 
LVL 119

Expert Comment

by:Rey Obrero
Comment Utility
@jrsitman

did you even try my post at http:#a39682665 ?

will give you this result

x
0
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 

Author Comment

by:jrsitman
Comment Utility
@capricorn1, yes sir I did.  I tried that one first.  It didn't work, so I tried the other posts.
0
 

Author Comment

by:jrsitman
Comment Utility
@capricorn1, when I place the cursor in the field, it doesn't do anything and it will let me enter any date format I want.
0
 
LVL 49

Expert Comment

by:Gustav Brock
Comment Utility
I don't think that is possible, because the characters of the mask determine the type of allowed characters, not the character(s) to input. Like the example:

>L????L?000L0   to allow for input like: GREENGR339M3

/gustav
0
 

Author Comment

by:jrsitman
Comment Utility
@cactus_data.  Thanks.  Not that important anyway
0
 
LVL 119

Expert Comment

by:Rey Obrero
Comment Utility
what version of access are you using?
0
 

Author Comment

by:jrsitman
Comment Utility
2010, backend is 2003 format
0
 

Author Closing Comment

by:jrsitman
Comment Utility
Thanks
0
 
LVL 49

Expert Comment

by:Gustav Brock
Comment Utility
You are welcome!

/gustav
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

This article is a continuation or rather an extension from Cascading Combos (http://www.experts-exchange.com/A_5949.html) and builds on examples developed in detail there. It should be understandable alone, but I recommend reading the previous artic…
In the article entitled Working with Objects – Part 1 (http://www.experts-exchange.com/Microsoft/Development/MS_Access/A_4942-Working-with-Objects-Part-1.html), you learned the basics of working with objects, properties, methods, and events. In Work…
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.

762 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

12 Experts available now in Live!

Get 1:1 Help Now