J
JCA
I have a series of fields on a form, and wish to calculate the average value
and display this in an unbound text box. I've calculated the value using the
expression builder (e.g. default value=([field1]+[field2]+[field3])/3), but
I'm having a series of problems:
1. How do I control how the value is displayed? Despite setting the decimal
places property to 0, the value is showing with multiple decimal places.
2. How do I enable 'live' calculation? The value doesn't appear immediately
(sometimes only after saving or clicking into a different database object).
Also the value being returned in the calculated field isn't updating if the
constituent fields are updated.
3. When I create a new record, the calculated field is pre-populated with
the value calculated for the previous record. Why isn't this blank?
I've obviously set this up wrong, but it seems such a simple thing to want
to do. Any advice will be greatly appreciated.
and display this in an unbound text box. I've calculated the value using the
expression builder (e.g. default value=([field1]+[field2]+[field3])/3), but
I'm having a series of problems:
1. How do I control how the value is displayed? Despite setting the decimal
places property to 0, the value is showing with multiple decimal places.
2. How do I enable 'live' calculation? The value doesn't appear immediately
(sometimes only after saving or clicking into a different database object).
Also the value being returned in the calculated field isn't updating if the
constituent fields are updated.
3. When I create a new record, the calculated field is pre-populated with
the value calculated for the previous record. Why isn't this blank?
I've obviously set this up wrong, but it seems such a simple thing to want
to do. Any advice will be greatly appreciated.