How would i go about creating a really really long chain of IF criteria?
I can do it with seperate IF statements, for example:
But the criteria i want works, but i get an error message saying the expression is too long
I've tried this:
To me this seemed the logical option, but it dosent seem to work. Is there any way to do this?
I can do it with seperate IF statements, for example:
Code:
If me.form.field1 = "test1" then
msgbox "This Works!"
End If
If me.form.field1 = "test2" then
msgbox "This Works!"
End If
If me.form.field1 = "test3" then
msgbox "This Works!"
End If
etc....
But the criteria i want works, but i get an error message saying the expression is too long
I've tried this:
Code:
If me.form.field1 = "test1" or "test2" or "test3" then
msgbox "This Works"
End If
To me this seemed the logical option, but it dosent seem to work. Is there any way to do this?