Inputmasks 
Author Message
 Inputmasks

Hi

Can you help me with the above.

I am trying to add an inputmask for date entry to a text
box.  How do I do it????

Thanks

Dave



Fri, 20 Feb 2004 15:34:06 GMT  
 Inputmasks
there is a control specifically for that
right-click the toolbox and select Components from the menu and select
Microsoft Masked Edit Control v??
add this to your form and set the Format property to how you want your date
formatted

Geoff


Quote:
> Hi

> Can you help me with the above.

> I am trying to add an inputmask for date entry to a text
> box.  How do I do it????

> Thanks

> Dave



Sat, 21 Feb 2004 02:01:31 GMT  
 Inputmasks
On Mon, 3 Sep 2001 00:34:06 -0700, "Dave"

Quote:

>Hi

>Can you help me with the above.

>I am trying to add an inputmask for date entry to a text
>box.  How do I do it????

>Thanks

>Dave

You cant do this with a TextBox.  you can with MaskedEditBox.
"???, ## ,####" will do it.  
This forces the user to enter Sep, 03 2001, with the commas inserted
automatically.

However, if there is any chance of your programme being used outside
the USA/Canada, I would not recommend this method.

Better to allow the user to input the date into a plain text box in
whatever way they choose.  Then in the lost focus event put the
following:

If IsDate(text1.text) then
        Format(Text1.text,"short date")
else
        msgbox"Invalid Date"
end if

This will format the date according to the users local settings.

Stuart Sutherland



Sat, 21 Feb 2004 03:02:31 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. InputMask and Access Error codes

2. Help on inputmask

3. Aquivalent .inputmask, Access-97 -> VB 6.0

4. Referencing Field Properties InputMask and Format, using VB/VBA

5. Trouble adding InputMask property to fields...

6. InputMask Property

7. VB inputmask Coding

8. Why No InputMask Property in VB6?

9. Date inputmask

10. Create Access field with Inputmask

11. field properties - unable to find Format/Caption or INputMask!

12. Can I limit then length of an indenpendent TextBox (not with InputMask) ?

 

 
Powered by phpBB® Forum Software