Converting Null Value to $0.00

jfrink2

New member
Local time
Today, 04:35
Joined
Mar 3, 2008
Messages
6
Hi All,

I have a table that has fields that captures dollar amounts. I have these fields set to a default value of "0".

The tables are updated via a query that imports a csv file. Once the import process has finished, my table has blank values in some of the fields that capture dollar amounts.

If a field populated by the csv file is left blank, I would like for the field to show $0.00.

How would you recommend handling this?
 
You can use the Nz() function to replace Null with 0.
 
You can use the Nz() function to replace Null with 0.

Would that be after the file has been imported to the tables? Or would you have the query make this adjustment to the file during the import process?
 
You can use it at any point. The most logical sounds like during the import, so you never have to worry about the Nulls again.
 
it depends what a null represents

null exists to enable you to distingusih between zero, and an "empty value" that you havent got around to verifying yet.

the distinction may be important in some cases
 
it depends what a null represents

null exists to enable you to distingusih between zero, and an "empty value" that you havent got around to verifying yet.

the distinction may be important in some cases

Null in this case represents an empty value.
 

Users who are viewing this thread

Back
Top Bottom