Input to Table

G

Guest

To keep it simple, I have a table and in it there are three number fields. I
need a fourth field that is the average of the three fields. I've made a
query that does just that. N4:((N1+N2+N3)/3)

My question is how do I now get the results from the query (N4) to write to
the table so the information is all it the table? As the numbers change the
queries automatically averages the changes. Is there a way that the query
will keep the table up to date also?
 
J

John Spencer

Don't store the result. You can always calculate it when it is needed.

Storing it means if you ever update any one of the values, you have to be
sure that you do the calculation and store the new result. Calculating it
means the calculation is always correct.

You cannot do this by simply running a SELECT query.
 
G

Guest

Understand, make sense.

Thanks

Steve

John Spencer said:
Don't store the result. You can always calculate it when it is needed.

Storing it means if you ever update any one of the values, you have to be
sure that you do the calculation and store the new result. Calculating it
means the calculation is always correct.

You cannot do this by simply running a SELECT query.
 

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