473,496 Members | 2,196 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Input mask military time

AccessIdiot
493 Contributor
Argh! This is driving me crazy. My db users want to be able to enter a string of numbers for hours, minutes, seconds, in military time format (021256 for 2:12:56 a.m. and 152416 for 3:24:16 p.m.). They don't want to have to specify am or pm and don't want to have to type colons. I can't seem to create this input mask myself for some reason and the one that comes with Access doesn't have seconds.

Help?
May 30 '07 #1
8 6966
Denburt
1,356 Recognized Expert Top Contributor
Look at the form report or query properties go to format and enter the following:

h:nn:ss

Then in the input mask you can enter:

00:00:00


As long as the database is set up to select everything in the field when going from a field to the next then you should be O.K.

They can type in:

122345

and it will appear as

12:23:45
May 30 '07 #2
AccessIdiot
493 Contributor
Thanks so much! I had hh:nn:ss and it wasn't working. I never would have thought of the single h.

Can you clarify this though? I don't get what you mean:

As long as the database is set up to select everything in the field when going from a field to the next then you should be O.K.
Thanks Denburt!
May 30 '07 #3
Denburt
1,356 Recognized Expert Top Contributor
Well when I used the mouse to enter the field is seemed a little quirky. I think it was due to the mouse pointed it in the wrong position for the input mask. When I tab from field to field it was no problem.
May 30 '07 #4
AccessIdiot
493 Contributor
Oh I get it. These guys were insisting on tabbing capabilities so it shouldn't be a problem. Thanks again!
May 30 '07 #5
Denburt
1,356 Recognized Expert Top Contributor
Oh I get it. These guys were insisting on tabbing capabilities so it shouldn't be a problem. Thanks again!
:) 1. 2. 3. 7. 9. 10.
May 31 '07 #6
AccessIdiot
493 Contributor
:) 1. 2. 3. 7. 9. 10.
lol, is this some kind of code?
May 31 '07 #7
Denburt
1,356 Recognized Expert Top Contributor
lol, is this some kind of code?
Just wanted to send a smile but you need at least ten characters on a post. :)
May 31 '07 #8
AccessIdiot
493 Contributor
Ha! I had no idea. :-)
May 31 '07 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

2
2849
by: Ellen Manning | last post by:
I've got an A2K database with a link to a table in another A2K database. This linked table contains SSN formatted with the SSN input mask. I'm trying to use a dlookup using this linked table. ...
4
3003
by: David W. Fenton | last post by:
I'm working on a subform where users put in 24-hour time. On their paper forms, they've been accustomed to referring to midnight as 24:00 (instead of as 0:00, which kind of makes sense from a human...
1
6250
by: Miranda Evans | last post by:
In my application, a text box control resides in a form. The text box control is unbound, but--assuming all edits are passed when the user click a command button on the form--the contents of the...
6
5975
by: Regnab | last post by:
Morning All, I'm trying to ensure that when the user enters a number on a form, the database automatically leaves a space after the 3rd number. I've tried to do this using input masks, but when...
4
2669
by: richardkreidl | last post by:
How would I check to see if the current time(military format) is greater then 07:30AM and the day of the week is Monday-Friday. Pseudo code: If Current_Time > 07:30AM and Current_Day = Monday...
2
2802
by: Bill nguyen | last post by:
I would like to be able to force "HH:MM" format for a text field to show hours and minutes in military format. User can enter 130 or 0130 and the text would display "01:30" Any suggestion is...
1
10592
ADezii
by: ADezii | last post by:
The following characters define an Input Mask: Character - Description 0 - Digit (0 to 9, entry required, plus and minus signs not allowed). 9 - Digit or space (entry not required, plus...
5
3597
by: mtgrizzly52 | last post by:
First thing, because of you all and this web site, I am building a first class time saving database for my fellow workers to use. My really dumb questions is this. I have a control in a subform...
1
12215
by: Doug | last post by:
Hi, I created a short date field. The format is dd/mm/yyyy when displayed. The input mask is set to 99/99/00;0 (default, I didn't type anything). If I edit an existing date, say change...
0
7160
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7196
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7373
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4897
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4583
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3088
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3078
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1405
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
286
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.