(Same database as my earlier posting by the way)
I’ve inherited a database that needs the data entry form tidying up.
The values chosen in a number of combo boxes have a knock on effect on others, for example:
Combo box with choice or 8 values (including “none”) – When the forms opens for a new record, “none” is the default value, six other combos are disabled with their values set to “N/A”. When the combo is updated to a value other than “none” the dependent combos should be enabled (their values left at “N/A” until changed by the user)
If the combo is changed back to “none” any dependent combos should be disbaled again and any chosen values reset to “N/A”.
When the form is re-opened the dependent combos should be in the appropriate state (according to whether the parent says “none” or something else)
As you can see there will be a lot of repetitive code just for this set of controls. There are a large number of similarly dependent control groups like this so I’m wondering what is the most efficient way to do it:
case statements?
if statements?