![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
|
Hello, I am developing an application and it has a field that users used to fill out themself. Now the design of the database improved such that the field can get the value from a calculation or from user input. So I tried to use the autoenter option with a calculation that allow users to overwrite. The problem is that the calculation is not computing on existing records. Do you know how to fix this? In the past I used a script (to copy values) but it does look like brute force to me. thanks! |
#4
| |||
| |||
|
|
auto-enter calculations are evaluated when the record is created. |
|
If you want to populate existing records the best way to do it is to go to a layout where the field is exposed select it and then do a Replace Contents using the calculation that you wish to auto-enter. If you do not want some of the existing records to be updated then you will have to omit them before doing the Replace. |
#5
| |||
| |||
|
#6
| |||
| |||
|
|
You are right I did not say everything that could be said about evaluation of Auto-enter, but the specific question was how do I fix the fact that it is not calculating on existing records? |
|
and I did not want to muddy the waters. The problem with unchecking the Do not replace existing value is that if the calculation does refer to itself then great care has to be exercised to ensure that the User's input is not wiped out by recalculation. My personal preference in circumstances where I would like the User input to be "sticky" is to do a recalculate only when the contents of the field are deleted. This allows a user who has messed-up the opportunity to regain the "default" auto-entered value. |
#7
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |