I want Currency field blank unless amount is entered

D

Dave Eliot

I have three Currency fields. Right now they all say "$0.00"
I would like to have them completely empty unless an amount is entered.
Can this be done?

Thanks.
 
B

Brendan Reynolds

Dave Eliot said:
I have three Currency fields. Right now they all say "$0.00"
I would like to have them completely empty unless an amount is entered.
Can this be done?

Thanks.


In table design view, select the field(s) in question, and delete the 0 from
the Default Value property. Leave it blank instead.
 
D

Dave Eliot

Thanks so much.

Yes, it works; however, I have a calculated field (based on sum of those
fields) that doesn't calculate when I do that. So it's back to "$0.00" ?
 
S

Steve

Put the following expression in the control source property of your
calculated field:
=NZ(Field1,0) + NZ(Field2,0) + NZ(Field3,0)

The NZ Function says if the field has a value, use it, otherwise, use the
value on the right side of the comma.

Use your actual textbox names for Field1, Field2 and Field3.

PC Datasheet
Providing Customers A Resource For Help With Access, Excel And Word
Applications
(e-mail address removed)
 
K

Ken Snell \(MVP\)

Change the Format property of the field (in design view of the table) to
this:

$#,##0.00;-$#,##0.00;"";""
 
D

Dave Eliot

Thanks so much! Really appreciate your help.

Steve said:
Put the following expression in the control source property of your
calculated field:
=NZ(Field1,0) + NZ(Field2,0) + NZ(Field3,0)

The NZ Function says if the field has a value, use it, otherwise, use the
value on the right side of the comma.

Use your actual textbox names for Field1, Field2 and Field3.

PC Datasheet
Providing Customers A Resource For Help With Access, Excel And Word
Applications
(e-mail address removed)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top