sql-serverms-accessjet

What does 'infinite' mean in MS Access query


enter image description hereI am trying to re-make some Access queries using SSMS. I ran across the below statement and I am a bit confused. it uses the term 'infinite' and I have never seen that in Access. Any help?

Code:

Bal: IIf([Infinite]<1,0,[infinite])

Solution

  • It's referring to a field in the database named "Infinite" (or "infinite").

    What it's trying to do is return 0 if [Infinite] is less than 1, and return the actual value if it's not less than 1.

    However if your SQL Server is set to case sensitive collation, the statement will fail because Infinite <> infinite