Input mask for Military Time

A

Arkansas Lady

I have created an input mask for Military Time. However, when you hit enter,
it is converted to Long Time. For example 23:30:20 appears as 11:30:20 PM.
How can you keep this as 23:30:20. If the format is short time the seconds
are not displayed. If you use Long Time, it appears as 11:30:20 PM
Thanks
 
G

Graham Mandeno

Hi Arkansas Lady

You need to set the Format property of the textbox as well as the InputMask
property.
 
A

Arkansas Lady

Graham,

When I set the format property to Short Time, I can type in 23:30:20.
However, when I hit enter, the seconds disappear. If I set it to Long Time,
then it goes to 11:30:22 PM. Thanks for your help.
--
Arkansas Lady


Graham Mandeno said:
Hi Arkansas Lady

You need to set the Format property of the textbox as well as the InputMask
property.
--
Good Luck :)

Graham Mandeno [Access MVP]
Auckland, New Zealand

Arkansas Lady said:
I have created an input mask for Military Time. However, when you hit
enter,
it is converted to Long Time. For example 23:30:20 appears as 11:30:20
PM.
How can you keep this as 23:30:20. If the format is short time the
seconds
are not displayed. If you use Long Time, it appears as 11:30:20 PM
Thanks
 
J

John W. Vinson

Graham,

When I set the format property to Short Time, I can type in 23:30:20.
However, when I hit enter, the seconds disappear. If I set it to Long Time,
then it goes to 11:30:22 PM. Thanks for your help.

Don't use either. Instead use a Format property of

"hh:nn:ss"
 
G

Graham Mandeno

Hi again

Don't use the canned formats - set it explicitly to hh:nn:ss

--
Good Luck :)

Graham Mandeno [Access MVP]
Auckland, New Zealand

Arkansas Lady said:
Graham,

When I set the format property to Short Time, I can type in 23:30:20.
However, when I hit enter, the seconds disappear. If I set it to Long
Time,
then it goes to 11:30:22 PM. Thanks for your help.
--
Arkansas Lady


Graham Mandeno said:
Hi Arkansas Lady

You need to set the Format property of the textbox as well as the
InputMask
property.
--
Good Luck :)

Graham Mandeno [Access MVP]
Auckland, New Zealand

Arkansas Lady said:
I have created an input mask for Military Time. However, when you hit
enter,
it is converted to Long Time. For example 23:30:20 appears as 11:30:20
PM.
How can you keep this as 23:30:20. If the format is short time the
seconds
are not displayed. If you use Long Time, it appears as 11:30:20 PM
Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top