Frage

I have a nullable int column in my access. I know this may be trivial but I am trying to find a way to show NULL value as blank. Somehow it just defaults to zero so basically all NULL value are being equated to null which is not my intention. For example my column is use for sorting. So if the user did not set a value in the sort column it should remain NULL and not zero.

Note: using access-2007

War es hilfreich?

Lösung

You could try:

Nz(column, "")

Additional details: http://office.microsoft.com/en-us/access-help/nz-function-HA001228890.aspx

Otherwise, you need to trace through your entire data path - from your table, to any query that is being used, to the form. If this is truly a nullable column with null values, something, somewhere is defaulting it to a 0. (Check the table. If there is a query behind the form, check the query without the form, etc.)

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top