Solved

How make short date field on a form display only the month/day/year

Posted on 2014-10-19
11
188 Views
Last Modified: 2014-10-19
I have a date field on a form and the format is Short Date.  But I want it to only display for example 10/19/2014 when the focus is on the field.  Right now it shows for example 10/19/2014 9:10:38 AM

How can I change this?
0
Comment
Question by:SteveL13
  • 6
  • 5
11 Comments
 
LVL 29

Expert Comment

by:IrogSinta
ID: 40390032
Instead of Short Date in the Format property of that particular control, use mm/dd/yyyy.

Ron
0
 

Author Comment

by:SteveL13
ID: 40390036
Didn't work.  It still shows "10/19/2014 9:10:38 AM" when the focus is on the field.  This is an unbound form if that helps.
0
 
LVL 29

Expert Comment

by:IrogSinta
ID: 40390075
Where is it getting that date/time if this is an unbound form?
0
 

Author Comment

by:SteveL13
ID: 40390092
It is a form used to locate a record or records based on the date range the user enters.  See screen shot.

Then there is a query which is the record source for a report that uses:

Between [Forms]![frmname]![txtStartDate] and [Forms]![frmname][!txtStartDate] for the criteria.

All I need is for the date field(s) on the form to display just "10/19/2014"  instead of "10/19/2014 9:10:38 AM" when the focus is on the field
0
 
LVL 29

Expert Comment

by:IrogSinta
ID: 40390099
You forgot the screenshot.
0
Highfive Gives IT Their Time Back

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!

 

Author Comment

by:SteveL13
ID: 40390142
Sorry.  Here are two... one before the date field gets the focus and one after the date field gets the focus.  You can see that the time starts to display (and would fully display if the field was longer.

before focus
after focus
0
 
LVL 29

Expert Comment

by:IrogSinta
ID: 40390267
So you actually selected a date from the date picker calendar rather than entering something in the field?
0
 

Author Comment

by:SteveL13
ID: 40390288
The default of the date fields is =Now()

When I click on the date field as if I wanted to manually enter a date, the time shows up.
0
 

Author Comment

by:SteveL13
ID: 40390292
Or even if I just click on the date field to use the calendar date picker the time shows up.
0
 
LVL 29

Accepted Solution

by:
IrogSinta earned 500 total points
ID: 40390324
That explains it.  The function Now() includes the time.  You need to use the function Date() instead in the default value.
0
 

Author Comment

by:SteveL13
ID: 40390352
Thank you so much!
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Join & Write a Comment

Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
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…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.

757 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

23 Experts available now in Live!

Get 1:1 Help Now