dchoxford
asked on
Validation Rule
I have an Access 2K database running in 2003 and i am having some validation rule problems.
For some reason it doesn't seem to like the wild card character.
if i give it the rule [ALike 'a*'] then it will only accept the characters 'a' and then '*'. rather than accepting 'aa' or 'abc'
What am i doing wrong?
Kind regards
DCHOxford
For some reason it doesn't seem to like the wild card character.
if i give it the rule [ALike 'a*'] then it will only accept the characters 'a' and then '*'. rather than accepting 'aa' or 'abc'
What am i doing wrong?
Kind regards
DCHOxford
ASKER
Yes i have, the square brackets were to denote the text rather than using quotes that i thought would be confusing in the instance.
It works under 2K but not as a 2K file opened in 2003
It works under 2K but not as a 2K file opened in 2003
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Could also try a forced concatenation like this:
Like 'a' & '*'
Like 'a' & '*'
ASKER
thanks mbizup,
Because i'm using the .ade A2003 seems to be using the SQL server compatible syntax which isn't the case for the users still on A2K. I'll just take off validation rules until all the clients are on the same version.
Because i'm using the .ade A2003 seems to be using the SQL server compatible syntax which isn't the case for the users still on A2K. I'll just take off validation rules until all the clients are on the same version.
Glad I could help.
Have you tried just this: Like 'a*'
You do not need the field name in a validation rule for a simple expression like that.
(°v°)