Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

iif function

Status
Not open for further replies.

santastefano

Programmer
Aug 9, 2005
54
IT
I have a report that uses the iif function to enter two currency amounts depending on the state of a check box in the underlying query.
Code:
=IIf([Private]=True,!NumberStudents*[Tuition],[Tuition])
This works fine and I am able to total the amount in each row
Code:
[field]+[field]
I can not make the individual columns total using the conventional
Code:
=sum([fieldname])
Any suggestions gratefully received.
 
Whoops!!
Now found the stupid error that caused the problem - as always if done properly it functions OK.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top