Link to home
Start Free TrialLog in
Avatar of Billy Ma
Billy MaFlag for Hong Kong

asked on

How to create a right validation rule in MS Access

I tried to create the following validation rule, but it doesn't work.
I want to look up the inactive date value in the Vehicles table after the user entering the vehicle_no in the current form.
if the inactive date is not null, an error message will appear.
no problem otherwise.
validation-rule.jpg
Avatar of jppinto
jppinto
Flag of Portugal image

Don't you need to use a IIF function!?
Avatar of Billy Ma

ASKER

why? it should be true, right?
Can you post here the text that you have on your validation rule please? It's hard to get it from the picture...
Avatar of Jez Walters
It's difficult to be 100% sure without knowing the control/field names - can you post a cut-down sample database?
SOLUTION
Avatar of shambalad
shambalad
Flag of United States of America 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
ASKER CERTIFIED SOLUTION
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