I have a text field, size = 20, required. The acceptable data must be numbers and dashes, for example: like you would find in a telephone number (123-456-7890), a social security number (123-45-6789), or such ##-## structure. No other symbols, spaces, or alpha characters can be allowed.
I have researched using a field validation rule at the table level; no luck. I have tried form code on the textbox's LostFocus, BeforeUpdate, AfterUpdate, etc. events; no luck.
Can anyone point me in the right direction to evaluate each "character" in the textbox to make sure it is either a 'number' or a dash? Thanks in advance for any help.
DB