There might be multiple rows in the expression that are hidden. Can you view the SQL view of the query? Can you confirm Mark is a numeric data type?
IIF Statement NOT working with number logic tests
I have a simple IIF statement;
IIF ([Marks]>50,"Pass","Fail")
But Access returns a syntax error. I have tried the IIF statement with Dates it works. I can even add marks onto existing mark, meaning all functions works but only when the logic test has to deal with numbers then I have a problem. Please help!!!
Microsoft 365 and Office | Access | For home | Windows
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
14 answers
Sort by: Most helpful
-
-
Anonymous
2021-04-14T13:13:15+00:00 Yes indeed, the "Mark" field is a 'Number' field. No hidden fields.
-
Duane Hookom 26,575 Reputation points Volunteer Moderator
2021-04-14T13:17:16+00:00 How about the SQL view? Can you copy the SQL statement and paste it into a reply?
Is there a reason you don't have the Show box checked?
-