A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Microsoft DTP format time



 
 
Thread Tools Display Modes
  #1  
Old November 15th, 2006, 09:56 PM posted to microsoft.public.access.forms
Jonathan
external usenet poster
 
Posts: 236
Default Microsoft DTP format time

Hi, this is probably simple and yet I don't seem to get it...
Using the properties I select a custom format for time so the control
displays a 12 hour clock including am/pm. The thing is
h:mm displays 9:35
h:mm am/pm displays 9:35 a35/p35

Any ideas how to display 9:35 am

Many thanks
Jonathan
  #2  
Old November 15th, 2006, 11:53 PM posted to microsoft.public.access.forms
John Vinson
external usenet poster
 
Posts: 4,033
Default Microsoft DTP format time

On Wed, 15 Nov 2006 13:56:02 -0800, Jonathan
wrote:

Hi, this is probably simple and yet I don't seem to get it...
Using the properties I select a custom format for time so the control
displays a 12 hour clock including am/pm. The thing is
h:mm displays 9:35
h:mm am/pm displays 9:35 a35/p35

Any ideas how to display 9:35 am

Many thanks
Jonathan


The "m" format value displays either months or minutes ("n"
unambiguously displays minutes), depending on the context. To get am
or pm displayed, use a/p. A format property of

h:nn a/p

should work.

John W. Vinson[MVP]
  #3  
Old November 16th, 2006, 07:55 PM posted to microsoft.public.access.forms
Jonathan
external usenet poster
 
Posts: 236
Default Microsoft DTP format time

"John Vinson" wrote:

On Wed, 15 Nov 2006 13:56:02 -0800, Jonathan
wrote:

Hi, this is probably simple and yet I don't seem to get it...
Using the properties I select a custom format for time so the control
displays a 12 hour clock including am/pm. The thing is
h:mm displays 9:35
h:mm am/pm displays 9:35 a35/p35

Any ideas how to display 9:35 am

Many thanks
Jonathan


The "m" format value displays either months or minutes ("n"
unambiguously displays minutes), depending on the context. To get am
or pm displayed, use a/p. A format property of

h:nn a/p

should work.

John W. Vinson[MVP]


Hi John, I'm attempting this in Access 2003 and for this version at least
the suggested format does not seem to apply to the date picker object. the nn
a/p are treated as literals.

May be the method I use is not correct... I select custom format and then
insert h:nn a/p only into the box and then click apply.

Any other suggestions appreciated.

Many thanks
Jonathan
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 07:37 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.