hi,
i've been trying to trouble shoot this expression in my form. I build this expression in a calculated control. The expression calculates the average of fields being entered. For example if 1 field is entered then the value is divided by 1. but if 2 fields are entered, then the two values are added and divded by 2.
field3: =(nz([field1])+nz([field2]))/((IsNull([field1])+1)+(IsNull([[Field2])+1))
i am trying to do a calculation in the control and then save it in the new field of the form but the expression is returning an error (#Name?) I have the .dll file but somehow it's not letting me use any of the build in functions.
Do I need to use a query or can I just do the whole calculation in the form. I'm not too familiar with using queries.
yiling
i've been trying to trouble shoot this expression in my form. I build this expression in a calculated control. The expression calculates the average of fields being entered. For example if 1 field is entered then the value is divided by 1. but if 2 fields are entered, then the two values are added and divded by 2.
field3: =(nz([field1])+nz([field2]))/((IsNull([field1])+1)+(IsNull([[Field2])+1))
i am trying to do a calculation in the control and then save it in the new field of the form but the expression is returning an error (#Name?) I have the .dll file but somehow it's not letting me use any of the build in functions.
Do I need to use a query or can I just do the whole calculation in the form. I'm not too familiar with using queries.
yiling