Hi, all!
There's got to be something right in front of my face that I'm mising, but I don't get this. I have a form with a few drop downs. I don't want any others to be enabled until there's an entry in the first one (DDAudPer). I test this by checking the length of DDAudPer.Text in the field's OnChange procedure. Once an entry is made the others are enabled and I can make entries there. But if the first one is changed back to a blank, I want the other dropdowns to have their entries removed, and to be re-disabled. The if/then is suppposed to acheive this, but it executes the code for the length = 0 regardless of what it actually evaluates to. The code is seen in the graphic below. It shows that the debugger went to the 1st line of code as if the length<>0, while the ImmedateWindow shows it evaluating (properly) to 0.
Any help will be appreciated!