Solved

Format Date/Time field

Posted on 2014-12-16
2
199 Views
Last Modified: 2014-12-17
I have a field in a table set up as a Date/Time field with the format being General Date.  And then I have a form bound to that table and a date/time field on the form set to General Date.

But the form is only displaying the date and so is the field in the table.

I want it to display, for example, "11/12/2014 5:34 PM (no seconds)

How can I make this happen?
0
Comment
Question by:SteveL13
2 Comments
 
LVL 18

Accepted Solution

by:
Simon earned 500 total points
ID: 40503605
set the format property of the textbox control

dd/mm/yyyy hh:nn AM/PM (if you're a Brit)
or
mm/dd/yyyy hh:nn AM/PM (if you're in the USA)

See also the MS reference page for this
0
 

Author Closing Comment

by:SteveL13
ID: 40504869
Perfect.  Thanks.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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…
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…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

863 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