I have been pulling my hair out with this one. I have three phone number fields - home, work, and cellular.
My goal is to accommodate the user when entering the phone, but also to allow for exceptions. I have set up the three phone fields with:
input masks: "("000")"000\-0000
default value: 315
Got Focus: Me.ActiveControl.SelStart = 6
The fields are not required.
This way the when the user tabs to the field they begin to type at the exchange portion but also can as needed over-ride the default for an out-of-area area code.
Hope this makes sense so far …
This all works great when the enter a phone number, the problem occurs when the field is left blank – the table then shows the field as ( ) -315 . I have looked all over to find a way of only entering the default value when the phone field is not blank.
Any help with the existing setup of the fields or possible resolves would be greatly appreciated. I played around some with allow zero-length, validation rules after update, and some others but to no avail.
Thanks
Emillard
My goal is to accommodate the user when entering the phone, but also to allow for exceptions. I have set up the three phone fields with:
input masks: "("000")"000\-0000
default value: 315
Got Focus: Me.ActiveControl.SelStart = 6
The fields are not required.
This way the when the user tabs to the field they begin to type at the exchange portion but also can as needed over-ride the default for an out-of-area area code.
Hope this makes sense so far …
This all works great when the enter a phone number, the problem occurs when the field is left blank – the table then shows the field as ( ) -315 . I have looked all over to find a way of only entering the default value when the phone field is not blank.
Any help with the existing setup of the fields or possible resolves would be greatly appreciated. I played around some with allow zero-length, validation rules after update, and some others but to no avail.
Thanks
Emillard