I want to use IN function to validate the EmpNo. whether it is in a list on a form. So on the employee no. field, after update event, I have the following codes:
If Forms![Entry]![Employee Number] In ("001","177","148","110","224") Then
Forms![Entry]![0 Defects].Locked = False
End
But I can not get it compiled. There is a compile error - syntax error.
Please Help! What syntax it should be!
Thank you very much in advance.
jen
If Forms![Entry]![Employee Number] In ("001","177","148","110","224") Then
Forms![Entry]![0 Defects].Locked = False
End
But I can not get it compiled. There is a compile error - syntax error.
Please Help! What syntax it should be!
Thank you very much in advance.
jen