I've got a form with 4 combo boxes, each with it's own list of valid items from the database and a default value of 'All'.
The combo boxes are cboProjName, cboProjType, cboProjCat, and cboProjPhase.
When an item is selected from the list of cboProjName, the list of cboProjType is refreshed using that value as a limiter. (i.e. only sub-Project Types that are valid for the selected Project Name are shown in the list).
A change to cboProjType similarly effects cboProjCat, and it in turn does the same to cboProjPhase.
The problem I'm having is when a sub-project type was already selected and a project name is selected that does not have that type of sub-project. The list gets refreshed, but then what is in the combo box is not on the list. When this happens, I'd like to trigger the NotInList event, but I can't figure out how to make this happen.
Any ideas? _________
Rott Paws
...It's not a bug. It's an undocumented feature!!!
The combo boxes are cboProjName, cboProjType, cboProjCat, and cboProjPhase.
When an item is selected from the list of cboProjName, the list of cboProjType is refreshed using that value as a limiter. (i.e. only sub-Project Types that are valid for the selected Project Name are shown in the list).
A change to cboProjType similarly effects cboProjCat, and it in turn does the same to cboProjPhase.
The problem I'm having is when a sub-project type was already selected and a project name is selected that does not have that type of sub-project. The list gets refreshed, but then what is in the combo box is not on the list. When this happens, I'd like to trigger the NotInList event, but I can't figure out how to make this happen.
Any ideas? _________
Rott Paws
...It's not a bug. It's an undocumented feature!!!