firstly, i would like to thanks for all the answers in this forums, it helps me a lot.
i have a question that i didn't find in this forum.
i have 5 fields (math, physic, informatic, German, and Englih) in one table, and i want to calculate the average's mark from these 5 fields, for example (tbl1.math + tbl1.physic + tbl1.informatic + tbl1.German + tbl1.English)/ 5)
but i want to make the dividing number dynamic, so if the user only inputing math and physic it will automaticly divide with two and not five, and if only math, informatic , German it will be divided with 3, etc.
i can make it in the module but not in the query
i hope i could get the answer
i have a question that i didn't find in this forum.
i have 5 fields (math, physic, informatic, German, and Englih) in one table, and i want to calculate the average's mark from these 5 fields, for example (tbl1.math + tbl1.physic + tbl1.informatic + tbl1.German + tbl1.English)/ 5)
but i want to make the dividing number dynamic, so if the user only inputing math and physic it will automaticly divide with two and not five, and if only math, informatic , German it will be divided with 3, etc.
i can make it in the module but not in the query
i hope i could get the answer