Hi,
I have a form for data entry relating to experiments.
I have several fields such as catagory, purpose, outcome.
Each field has a listbox to choose criteria from i.e. Category = 1 Environmental, 2 biological, 3 toxicology, 4 other and so on.
What I need to happen is if the user puts in a number "3" in the purpose field, Category must = "1" or "3". If it it doesn't then a msgbox comes up asking the user to check.
I have tried things like below but am sure where to put them and if it's correct?
Anyhelp would be fab:
Forms - Before update propertied of the Purpose field
Iif [forms]![purpose]= "3" AND IIF [forms]![category] = "1" OR "3", "", msgbox "Please check options made".
thanks
Sue
I have a form for data entry relating to experiments.
I have several fields such as catagory, purpose, outcome.
Each field has a listbox to choose criteria from i.e. Category = 1 Environmental, 2 biological, 3 toxicology, 4 other and so on.
What I need to happen is if the user puts in a number "3" in the purpose field, Category must = "1" or "3". If it it doesn't then a msgbox comes up asking the user to check.
I have tried things like below but am sure where to put them and if it's correct?
Anyhelp would be fab:
Forms - Before update propertied of the Purpose field
Iif [forms]![purpose]= "3" AND IIF [forms]![category] = "1" OR "3", "", msgbox "Please check options made".
thanks
Sue