I have a database which, among other things, tracks specific actions over time. Within this database, I have pages that run percentile statistics comparing specific actions (noted here for privacy as Action1 and Action2), within specified years. When there are records where both types of actions have taken place in the specified year, the queries and reports work flawlessly. But I am designing the database to be ready to accommodate years where there have been no actions as of yet. This is resulting in the usual error message one gets when one attempts to divide by zero. I'd like to be able to use the IFERROR function.
I did a Google search regarding the IFERROR function in Access and, not surprisingly, was directed to a question in this forum. Unfortunately, the question is from 2011, so I'm not just replying to it here. I tried applying what I found and am not getting what I want. The responder to the 2011 question indicated that the best way to do this was to use a combination of the IIf function and Iserror function. I attempted to follow their guidance and came up with the following:
=IIf(IsError([txt#ActualAction1s]/[txt#ActualAction2s]*100),"",txt#ActualAction1s]/[txt#ActualAction2s*100))
I'm getting a notice that there's an error in my expression syntax. Can someone help?
I did a Google search regarding the IFERROR function in Access and, not surprisingly, was directed to a question in this forum. Unfortunately, the question is from 2011, so I'm not just replying to it here. I tried applying what I found and am not getting what I want. The responder to the 2011 question indicated that the best way to do this was to use a combination of the IIf function and Iserror function. I attempted to follow their guidance and came up with the following:
=IIf(IsError([txt#ActualAction1s]/[txt#ActualAction2s]*100),"",txt#ActualAction1s]/[txt#ActualAction2s*100))
I'm getting a notice that there's an error in my expression syntax. Can someone help?