#Error

S

SG

I have the following set as the control source of a text box
=[subtotal]-[sub total] whihc works fine until there is nothing in the field
and I get #Error how do I stop this?

Thanks in advance

S
 
D

Damian S

Hi SG,

Assuming it's all working fine, seems like you are having NULL problems.
Use the nz() function like this:

=nz([subtotal],0) - nz([sub total], 0)

This will replace a NULL value with a zero.

Damian.
 
S

SG

Damian,

I have tried this but I am still getting the #Error ??


Damian S said:
Hi SG,

Assuming it's all working fine, seems like you are having NULL problems.
Use the nz() function like this:

=nz([subtotal],0) - nz([sub total], 0)

This will replace a NULL value with a zero.

Damian.

SG said:
I have the following set as the control source of a text box
=[subtotal]-[sub total] whihc works fine until there is nothing in the
field
and I get #Error how do I stop this?

Thanks in advance

S
 
D

Damian S

Do you have your control (ie: text box) with the same name as your database
field? This will cause confusion for Access and give you the #Error issue
also.

Damian.

SG said:
Damian,

I have tried this but I am still getting the #Error ??


Damian S said:
Hi SG,

Assuming it's all working fine, seems like you are having NULL problems.
Use the nz() function like this:

=nz([subtotal],0) - nz([sub total], 0)

This will replace a NULL value with a zero.

Damian.

SG said:
I have the following set as the control source of a text box
=[subtotal]-[sub total] whihc works fine until there is nothing in the
field
and I get #Error how do I stop this?

Thanks in advance

S
 

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