Whenever I try to use IN as a condition in VBA I get an compile error, either "Expected list separator or )" or "Expected Then or Go To", with the IN highlighted.
For example, I tried both
If Me![Status] in (1,3,5) Then
If iif(Me![Status] in (1,3,5),-1,0) Then
where Status is a control on the current form bound to an integer field.
Both conditions work in a query.
Any ideas? Thanks
For example, I tried both
If Me![Status] in (1,3,5) Then
If iif(Me![Status] in (1,3,5),-1,0) Then
where Status is a control on the current form bound to an integer field.
Both conditions work in a query.
Any ideas? Thanks