X   Site Message
(Message will auto close in 2 seconds)

Welcome to UtterAccess! Please ( Login   or   Register )

Custom Search
> Input Box Default Format For Data, Any Version    
post Jun 24 2019, 05:06 AM

Posts: 1,120
Joined: 16-June 05

The default for an input box is: strNewTime = InputBox("Enter training time as hh:mm", "Training Time")
Is it possible to have a default format for the data to be entered, like __:__
Go to the top of the page
Start new topic
post Jun 24 2019, 05:51 AM

Posts: 1,879
Joined: 5-February 06
From: Ohio, USA

I would, personally, make a few changes.

First, I would put the text "Enter training time as hh:mm." as a tooltip message instead of an input box. Mainly because I don't like the input box. You get a rather wide box that you can put practically anything into, no matter what mask you use, number of characters, etc.

Speaking of masks... that is what I would use instead, the input mask of the text box on the form itself.

(All this, of course, supposes that you are using a form... right?)

"Nuclear" Nick
The top three reasons to hide code; 1) It's not your own. 2) It's your own, but it's so crappy you don't want anyone to see it. 3) The comments in your code would get you in a lot of trouble if ever made public.
Go to the top of the page

Posts in this topic

Custom Search

RSSSearch   Top   Lo-Fi    7th August 2020 - 10:25 PM