Expression to not show zero in query

tmyers

Well-known member
Local time
Today, 13:05
Joined
Sep 8, 2020
Messages
1,091
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.
 
Can ignore. I found the issue within the table that fixes the problem.
 
Ok.

But could use an iif statement, or:

Code:
Test: Switch([ColumnName]=0,Null)
 
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

Back
Top Bottom