No, I definitely need all 6 list boxes. I've attached a couple screen shots to show what I'm trying to do, and why all 6 are needed.
ListBoxHelp1 shows how the user progresses through the options to narrow down their selections. It shows that for *some* selections, even the 6th list box has options A or B to choose from. This is why all 6 are needed.
ListBox2help shows that for some *other* selections, once you select the 1st item, all the other list boxes end up with just the one option. This only happens *sometimes* and not all the time. It is for *these* occasions where I'd like the subsequent list boxes to get populated automatically.
ListBoxHelp3 shows what is going on when I'm in the middle of a selection. Once I've selected the Pressure, there is only one CorrosionAllowance option, and only one Joints option. But these don't get "selected" automatically. They're set to null and requeried, but I still must click on the Corr Allow list box to get the Joints box to populate.
I have only one table. the script behind the list box does all the Selecting.
An example Select statement is:
Code:
SELECT DISTINCT MainData.ServiceID, MainData.Class, MainData.[Primary Material] FROM MainData WHERE (((MainData.ServiceID)=forms!SelectForm!SelSvc) And ((MainData.Class)=forms!SelectForm!SelCls));
The script behind the OnClick event is (varied, of course, for how many list boxes come after it):
Code:
Private Sub SelCls_Click()
SelMat.Value = Null
SelMat.Requery
SelPrs.Value = Null
SelPrs.Requery
SelCA.Value = Null
SelCA.Requery
SelSB.Value = Null
SelSB.Requery
SelResult.Value = Null
SelResult.Requery
End Sub
I have to set the values to Null before the requery, or the value from the previous selection is still active.
Thank you for your time.