I am trying to check and make sure that the User has entered a proper format Phone number

555-555-5555
or
555-5555

i tried to use the

Code:
textbox.text<>format(textbox.text,"###-####)
and
Code:
textbox.text<>format(textbox.text,"###-###-####)
but if i enter 1234-55
it says that it is valid. How can i make sure that all the pos-holders are filled

thanks