Question Time format changes in edit mode

Outzen

Registered User.
Local time
Today, 21:48
Joined
Aug 16, 2012
Messages
10
Hi :cool: - started working with access 2010

Have a text field in a form with following relevant (afaik) properties:
Format tab - Format: Short Time
Data tab - Inputmask: 00:00;0;_
Data tab - Default value: =Time()

Goal: show a default but editable current time in HH:MM format
Behaviour: When entering form current time is displayed in HH:MM :) - problem is that when I enter field with the curser it automatically changes format to HH:MM:SS.:banghead:

How can I avoid/control that behavior?
 
What format is the Field in the underlying table, where the Date is actually stored??
 
There are no underlaying table - the date in the text field will be part of a new entry in a table based on a button click.
 
ok

try

Default Value = Left(Time(),5)

Just tried it and it seems to work.
 
Seems like the Time() function overrode the Input Mask setting!
 
It works - if you replace , with ; i.e.: =Left(Time();5).

Irritating little bug - Thks a lot
 
Last edited:

Users who are viewing this thread

Back
Top Bottom