How do I Fix or Remove #Error on Access textbox?

Ahmad Arief Mohd Nor 196 Reputation points
2021-08-11T06:59:01.503+00:00

Here are what I write in the textbox control source box under property sheet.

=DSum("[CountReminder]","[QRunningReminder]")

My question is, how do I Remove the #Error on the textbox when there's no value/item in query for it to calculate? I would like or it to simply say "0" or "None". Or at least leave it blank.

Access Development
Access Development
Access: A family of Microsoft relational database management systems designed for ease of use.Development: The process of researching, productizing, and refining new or existing technologies.
908 questions
0 comments No comments
{count} votes

Accepted answer
  1. DBG 2,376 Reputation points
    2021-08-11T19:32:57.137+00:00

    Hi. Probably not the best way, but you could try something like:

    =IIf(DCount("*","QRunningReminder")=0,"None",DSum("CountReminder","QRunningReminder"))

    Hope that helps...

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Ahmad Arief Mohd Nor 196 Reputation points
    2021-08-16T06:42:06.443+00:00

    Sorry, my bad. I wrote the wrong Query name. Access automatically leave it blank if there's no data to show.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.