Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要在 Access 2010 的表中验证电子邮件字段。我试过:
Is Null OR ((Like "*?@?*.?*") AND (Not Like "*[ ,;]*"))
但这没有用。
您的数据库似乎处于ANSI 92模式,当您粘贴规则时...
ANSI 92
...访问自动更改Like为ALike,正在生产...
Like
ALike
Is Null Or ((ALike "*?@?*.?*") And (Not ALike "*[ ,;]*"))
问题是ALike使用 ANSI 通配符,因此您需要将规则更改为
Is Null Or ((ALike "%_@_%._%") And (Not ALike "%[ ,;]%"))