T
tlyczko
I have been reviewing the groups for ways to validate a phone number,
and I have found various techniques...
The one that seems to make the most sense is in the after update event:
If Me.Phone Not Like [###][-][####] then
msgbox 'wrong format'
end if
Where I am stuck is how to perform the test so the after update event
will kick out the right error correction.
I have found some keypress evaluation code but it seems too complicated
for this simple validation.
I have to allow the field to be null (no phone) or have the field be a
valid phone number...
Thank you,
Tom
and I have found various techniques...
The one that seems to make the most sense is in the after update event:
If Me.Phone Not Like [###][-][####] then
msgbox 'wrong format'
end if
Where I am stuck is how to perform the test so the after update event
will kick out the right error correction.
I have found some keypress evaluation code but it seems too complicated
for this simple validation.
I have to allow the field to be null (no phone) or have the field be a
valid phone number...
Thank you,
