UtterAccess.com
X   Site Message
(Message will auto close in 2 seconds)

Welcome to UtterAccess! Please ( Login   or   Register )

Custom Search
 
   Reply to this topicStart new topic
> Input Box Default Format For Data, Any Version    
 
   
TimTDP
post Jun 24 2019, 05:06 AM
Post#1



Posts: 1,090
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 __:__
Thanks
Go to the top of the page
 
nuclear_nick
post Jun 24 2019, 05:51 AM
Post#2



Posts: 1,758
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
 


Custom Search


RSSSearch   Top   Lo-Fi    19th July 2019 - 05:52 AM