From: mlev on
In the form, users may enter alphanumerical data. The only special
characters I want to allow are periods (.) and hyphens (-).

How can I modify this validation rule to allow a hyphen? Rule is:

Is Null Or Not Like "*[!((a-z) or (0-9) or (.))]*"




From: Marshall Barton on
mlev wrote:

>In the form, users may enter alphanumerical data. The only special
>characters I want to allow are periods (.) and hyphens (-).
>
>How can I modify this validation rule to allow a hyphen? Rule is:
>
> Is Null Or Not Like "*[!((a-z) or (0-9) or (.))]*"
>

Try using:
Is Null Or Not Like "*[!a-z0-9.-]*"

--
Marsh
MVP [MS Access]
 | 
Pages: 1
Prev: Basic INSERT question
Next: subforms