dbTalk Databases Forums  

VBA Input Mask

comp.database.ms-access comp.database.ms-access


Discuss VBA Input Mask in the comp.database.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
gnat
 
Posts: n/a

Default VBA Input Mask - 08-12-2004 , 10:26 PM






hello comp.database.ms-access,

is there a way to use the InputMask property to validate
something going into a table from another table using vba?

i.e.,

table2 already has a telephone field:

table2
ID Telephone
1 555-555-5555
2 555-5555
3 555-5555-555

table1.Fields("Telephone").Properties("InputMask") = "(000) 000-0000"

now i want to move the data from table2 to table1 and check that
the data in table2 will fit into table1, if not i want to fail it
and move on to the next one.

only record 1 from table2 should pass.

is there any way to do this currently with vba and access?

thanks,
gnat.

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.