Sum of IIF

H

Hagan

Sorry if this is a repeat, but I think I posted it in the wrong area before.

I'm trying to use an Iif function between two columns that are populated in
the db. The lines total across, but when I try to grand total them att he
bottom, I get asked for more information or get an error.

=Sum(IIf([Monthly Limit]>[Total Points],[Total Points],[Monthly Limit]))

Thanks for any and all help.
 
K

Ken Snell \(MVP\)

Are [Monthly Limit] and [Total Points] the names of fields in the report's
RecordSource query? If not, replace them with the actual field names -- Sum
will not work on controls' values.
 

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

Similar Threads

Sum Iff Function 8
IIf - Sum Problem 1
Sum if 1
Access Query problem 1
# Error when no data 4
SynNeed to account for null values in subreports 2
Aggregate Function Error 0
subtotal of total of some of the groups 6

Top