return column values with IIF

R

RICK

I have the following as a "control source". I get #error. What could be
wrong?

=IIf(IsNull([SumOfAmount]),[PIFunds],(IIf([AmountType]=1,[PIFunds],"")))
 
M

Marshall Barton

RICK said:
I have the following as a "control source". I get #error. What could be
wrong?

=IIf(IsNull([SumOfAmount]),[PIFunds],(IIf([AmountType]=1,[PIFunds],"")))


I suspect that the problem is that the text box is named
either SumOfAmount, AmountType or PIFunds. If so change its
name to something else.

It's also possible that #Error is being propogated from one
of the other text boxes that also has #Error
 

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