Expression to not show zero in query (1 Viewer)

tmyers

Well-known member
Local time
Yesterday, 23:24
Joined
Sep 8, 2020
Messages
1,090
What would be the correct expression to have a field in a query be Null rather than show 0?

On a form that uses the query as a control source, i tried setting fields default value to null, but it doesnt work.
 

tmyers

Well-known member
Local time
Yesterday, 23:24
Joined
Sep 8, 2020
Messages
1,090
Can ignore. I found the issue within the table that fixes the problem.
 

Isaac

Lifelong Learner
Local time
Yesterday, 20:24
Joined
Mar 14, 2017
Messages
8,777
Ok.

But could use an iif statement, or:

Code:
Test: Switch([ColumnName]=0,Null)
 

Pat Hartman

Super Moderator
Staff member
Local time
Yesterday, 23:24
Joined
Feb 19, 2002
Messages
43,275
Formatting such as this is best done on the form or report. Doing this in the query, will make the field not updateable.
 

Users who are viewing this thread

Top Bottom