Perform calculations in a form with possible null fields

K

KevinS

I have a form that has has three questions with a answer value of 0 - 5. I
need to get the total of the responses from the three questions and then get
an average.

Caveat! Not all the questions will be answered so some questions will be
blank. This does not affect the total but it WILL affect the average.

Any suggestions?
Thank you!
 
K

KARL DEWEY

How is the data stored?
Is there a record for each question?
Do you record who is responding and when?
 
K

KevinS

Data is in a number format 0 decimals.
each question is a field - not a separate record
Do not track name or time.

Thank you,
Kevin
 
K

KARL DEWEY

Post table and field names with datatype.
YourTableName --
Quest_1 - Number
Quest_2 - Number
Quest_3 - Number

Post sample data.
Quest_1 Quest_2 Quest_3
4 3 0
3 1 4
5 5 2
 

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