Time()

  • Thread starter Thread starter Sport
  • Start date Start date
S

Sport

Is there a way to trunkate what the time function sets; I have a field that
is formated as short time, and a button to set it to the current time using
the time funtion. Now if you use the button to get the current time, but
say want to back it up 30 min. When you put the cursor in the field to make
the changes you actually get the long date and have to delete the unwanted
characters, as I am using an input mask and it creates a conflict. I would
like to keep the input mask, so I thought of trying to force the format of
the time fuction. If this does not make any sense please ask for more
information.

thank you,
 
Use the format function, in your button code:

Something like

format(Time(),"hh:nn")

hth

Chris
 
Back
Top