Addinf Sum() gives error

S

SAC

I have a textbox in a datasheet form whose data source is:

=IIf([Forms]![frmEstrh]![txtCustTaxable]=-1,[txtPriceExt],0)

If I try to sum it in another control like this:

=Sum(IIf([Forms]![frmEstrh]![txtCustTaxable]=-1,[txtPriceExt],0))

I get an error.

Any ideas?

Thanks.
 
S

SAC

Thanks. I got it....went back to a previous version where it worked. I
must have had a typo.

Thanks for your help. I really appreciate it.

Wayne Morgan said:
Where is this other control located?

--
Wayne Morgan
MS Access MVP


SAC said:
I have a textbox in a datasheet form whose data source is:

=IIf([Forms]![frmEstrh]![txtCustTaxable]=-1,[txtPriceExt],0)

If I try to sum it in another control like this:

=Sum(IIf([Forms]![frmEstrh]![txtCustTaxable]=-1,[txtPriceExt],0))

I get an error.

Any ideas?

Thanks.
 

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