Calculating Fields

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a data entry form for keeping track of courses taken. I need to add a
"totals" field that adds the sum of 4 fields (CourseCost, TravelCost,
MealsCost, MiscCost). I added a text box and in the control source, added
=CourseCost+TravelCost+MealsCost+MiscCost. It doesn't work (it does work
with just two fields, however). What am I doing wrong? By the way, should I
add a calculation in the query instead? If so, what would be the correct
expression?

I am using 2003. Thank you so much for your help.

MB
 
Try this, adding square brackets, and adding the NZ function to replace Null
with zero

=Mz([CourseCost],0)+Nz([TravelCost],0)+Nz([MealsCost],0)+Nz([MiscCost],0)
 

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

Back
Top