IIF() expects 3 input variables, the criteria to test for, what to do if it is TRUE, what to do if it is FALSE.
If you explain what should be happening, we can try to further help.
Also, ypically I would use Nz([FiledName], 0) to always ensure there is a numeric value being returned just in case a field is empty, Null which could cause errors to be thrown.
Microsoft Access is a rapid application development (RAD) relational database tool. Access can be used for both desktop and web-based applications, and uses VBA (Visual Basic for Applications) as its coding language.
If you explain what should be happening, we can try to further help.
Also, ypically I would use Nz([FiledName], 0) to always ensure there is a numeric value being returned just in case a field is empty, Null which could cause errors to be thrown.