Hi All,
I've attached a demo of my problem.
The DB form has:
- "ObsDistRef" is a combo box and can have the value ("BR brake release" or "LO liftoff end of runway")
-"Dist_init" is used for a calculation
-"Dist" is the value I want stored. It referes to the distance between "BR brake release" and the Obstacle or the distance between "LO liftoff end of runway" and the obstacle.
-"TORA_FNL" is the distance between "BR brake release" and "LO liftoff end of runway". It is a value used to correct the dist depending on the choose of the "ObsDistRef"
In addition, "ObsDistRef" has a afterUpdate event to corrects the value of dist depending on the chose of "BR brake release" or "LO liftoff end of runway".
What I would like :
- The user chooses a "ObsDistRef"
- Than the user inputs a "Dist"
- What I would like is when the user changes "ObsDistRef", the "Dist" value corrects itselve automatically.
I've managed to code the maths correctly.The Dist value correct itself correctly if i change the "ObsDistRef" ones. But the problem is when I click multiple times on the same "ObsDistRef" the maths repeats itself and I don't want that.
How can I stop my equations repeating themselves if the same value of "ObsDistRef" is click on multiple time?
Thank you for your help,
Mat
I've attached a demo of my problem.
The DB form has:
- "ObsDistRef" is a combo box and can have the value ("BR brake release" or "LO liftoff end of runway")
-"Dist_init" is used for a calculation
-"Dist" is the value I want stored. It referes to the distance between "BR brake release" and the Obstacle or the distance between "LO liftoff end of runway" and the obstacle.
-"TORA_FNL" is the distance between "BR brake release" and "LO liftoff end of runway". It is a value used to correct the dist depending on the choose of the "ObsDistRef"
In addition, "ObsDistRef" has a afterUpdate event to corrects the value of dist depending on the chose of "BR brake release" or "LO liftoff end of runway".
What I would like :
- The user chooses a "ObsDistRef"
- Than the user inputs a "Dist"
- What I would like is when the user changes "ObsDistRef", the "Dist" value corrects itselve automatically.
I've managed to code the maths correctly.The Dist value correct itself correctly if i change the "ObsDistRef" ones. But the problem is when I click multiple times on the same "ObsDistRef" the maths repeats itself and I don't want that.
How can I stop my equations repeating themselves if the same value of "ObsDistRef" is click on multiple time?
Thank you for your help,
Mat