VB inputmask Coding 
Author Message
 VB inputmask Coding

Can anyone get me started with creating an inputmask or input format for a
textbox.

for instance a want a textbox preformatted with ../../.... (dd/mm/yyyy) so
that the user
only has to type day, month and year. After that i want to add the textbox
entry in a
mdb date field through a recordset addnew - update

thanks

Edwin



Fri, 28 Sep 2001 03:00:00 GMT  
 VB inputmask Coding

Quote:

>Can anyone get me started with creating an inputmask or input format for a
>textbox.

>for instance a want a textbox preformatted with ../../.... (dd/mm/yyyy) so
>that the user
>only has to type day, month and year. After that i want to add the textbox
>entry in a
>mdb date field through a recordset addnew - update

Instead of using a textbox, you want to use the Masked Edit Control.  It
allows you to set a Mask property:

        MEB1.Mask = "##/##/####"

Then you can use the Text property to update your DB field:

        MyRS!DateField = #MEB1.Text#

Lee Weiner
weiner AT fuse DOT net
http://home.fuse.net/lweiner



Sat, 29 Sep 2001 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. InputMask and Access Error codes

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

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

4. Help on inputmask

5. Trouble adding InputMask property to fields...

6. InputMask Property

7. Why No InputMask Property in VB6?

8. Inputmasks

9. Date inputmask

10. Create Access field with Inputmask

11. Help with some VB Code (Code included)

12. Vb code to print 2D bar-code

 

 
Powered by phpBB® Forum Software