andy_dyer
Registered User.
- Local time
- Today, 13:36
- Joined
- Jul 2, 2003
- Messages
- 806
Ok - need to explain what I am trying to do and why...
I tried and failed to get this to work using a multiselect listbox...
I have a list of departments in tblFunctionalArea
My main table is tblStatic
I want to be able to for each record select multiple departments affected by a record and store them in the tblStatic.
After looking around i couldn't find many people successfully maanging to store listbox values in a table...
I decided to create 5 fields in tblStatic and in my form create multiple combo boxes cboFunctionalArea1, cboFunctionalArea2 etc etc which are bound to these fields
It is not likely from the list of 15 dept's that more than 5 would be affected at any one time
So to my problem...
I want to be able to ensure the list for any combo box requeries and takes out any selection in the other boxes.
I have this working in a strict cascade fashion i.e. in cbo1 all dept's visible, in cbo2 it takes off whatever was selected in cbo1 etc etc
But if someone then jumps back and deletes the content of cbo3 then the whole thing breaks or if they amend in the wrong order it breaks...
Any ideas how to fix this?
I tried and failed to get this to work using a multiselect listbox...
I have a list of departments in tblFunctionalArea
My main table is tblStatic
I want to be able to for each record select multiple departments affected by a record and store them in the tblStatic.
After looking around i couldn't find many people successfully maanging to store listbox values in a table...
I decided to create 5 fields in tblStatic and in my form create multiple combo boxes cboFunctionalArea1, cboFunctionalArea2 etc etc which are bound to these fields
It is not likely from the list of 15 dept's that more than 5 would be affected at any one time
So to my problem...
I want to be able to ensure the list for any combo box requeries and takes out any selection in the other boxes.
I have this working in a strict cascade fashion i.e. in cbo1 all dept's visible, in cbo2 it takes off whatever was selected in cbo1 etc etc
But if someone then jumps back and deletes the content of cbo3 then the whole thing breaks or if they amend in the wrong order it breaks...
Any ideas how to fix this?