Link to home
Start Free TrialLog in
Avatar of dchoxford
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
Avatar of Markus Fischer
Markus Fischer
Flag of Switzerland image

Hello dchoxford

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°)
Avatar of dchoxford
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

ASKER CERTIFIED SOLUTION
Avatar of mbizup
mbizup
Flag of Kazakhstan image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Could also try a forced concatenation like this:

Like 'a' & '*'
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.
Glad I could help.