Welcome to Wrox!
There is nothing in your code that would make it evident whether it's firing or not. All you're doing is setting textboxes, comboboxes, and checkboxes to empty strings or false.
This is not really necessary because
1) when you designed your tables, your yes/no fields could have been set to FALSE as default initial value there.
2) As for the textboxes and comboboxes, if you don't set them at all, their default values are NULL. You set them to empty strings "" which is not the same thing. Ideally, if you didn't set a textbox to some value, you WANT it to be null.
Therefore, from my limited understanding of what your form does, that whole load procedure is totally unnecessary (see 1) or even problematic (see 2).
Greg Serrano
Michigan Dept. of Environmental Quality, Air Quality Division
|