How do you add infor from 3 boxes in form

R

Ryan

Have tried to add the scores from 3 diffrent boxes in a form and it keeps
adding the whole field. have used
=[Push-up Points]+[Sit-up Points]+[Run Points]
=sum("[Push-up Points]","[Sit-up Points]","[Run Points]")

Just want 3 numbers to add up. Just for the name of that person.
 
D

Douglas J. Steele

When you say it "keeps adding the whole field", do you mean if [Push-up
Points] contains 3, [Sit-up Points] contains 2 and [Run Points] contains 1,
you end up with 321?

Try:

=CLng(Nz([Push-up Points], 0))+CLng(Nz([Sit-up Points], 0))+CLng(Nz([Run
Points], 0))
 
R

Ryan

it adds the all the scores in the data base

Douglas J. Steele said:
When you say it "keeps adding the whole field", do you mean if [Push-up
Points] contains 3, [Sit-up Points] contains 2 and [Run Points] contains 1,
you end up with 321?

Try:

=CLng(Nz([Push-up Points], 0))+CLng(Nz([Sit-up Points], 0))+CLng(Nz([Run
Points], 0))


--
Doug Steele, Microsoft Access MVP

(no private e-mails, please)


Ryan said:
Have tried to add the scores from 3 diffrent boxes in a form and it keeps
adding the whole field. have used
=[Push-up Points]+[Sit-up Points]+[Run Points]
=sum("[Push-up Points]","[Sit-up Points]","[Run Points]")

Just want 3 numbers to add up. Just for the name of that person.
 

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