In access 2003, on a simple form, I am trying to base the recordsource of a combobox on two other combobox's data.
Here is the code I've tried and it did not work (except for the PN Cross/Info).
The Combo boxes names are: Product Type, Combo33 and Issue, where Issue is what should populate based on what is chosen in Product Type and Combo33.
Thanks!
Here is the code I've tried and it did not work (except for the PN Cross/Info).
The Combo boxes names are: Product Type, Combo33 and Issue, where Issue is what should populate based on what is chosen in Product Type and Combo33.
Code:
Private Sub Combo33_AfterUpdate()
Select Case True
Case (Me.[Product Type] = "1. Compressors" And Me.[Combo33] = "Troubleshoot")
Issue.RowSource = "tbl1TS"
Case (Me.[Product Type] = "2. Actuators" And Me.Combo33 = "Troubleshoot")
Issue.RowSource = "tbl2TS"
Case (Me.[Product Type] = "3. Valves" And Me.Combo33 = "Troubleshoot")
Issue.RowSource = "tbl3TS"
Case (Me.[Product Type] = "4. Reservoirs" And Me.Combo33 = "Troubleshoot")
Issue.RowSource = "tbl99NA"
Case (Me.[Product Type] = "5. Slacks" And Me.Combo33 = "Troubleshoot")
Issue.RowSource = "tbl5TS"
Case (Me.[Product Type] = "6. Warning Devices" And Me.Combo33 = "Troubleshoot")
Issue.RowSource = "tbl99Leak"
Case (Me.[Product Type] = "8. Air Dryers" And Me.Combo33 = "Troubleshoot")
Issue.RowSource = "tbl8TS"
Case (Me.[Product Type] = "9. Fan Drives" And Me.Combo33 = "Troubleshoot")
Issue.RowSource = "tbl99NA"
Case (Me.[Product Type] = "13. ABS" And Me.Combo33 = "Troubleshoot")
Issue.RowSource = "tbl13TS"
Case (Me.[Product Type] = "15. Electronics" And Me.Combo33 = "Troubleshoot")
Issue.RowSource = "tbl99Leak"
Case (Me.[Product Type] = "18. Systems" And Me.Combo33 = "Troubleshoot")
Issue.RowSource = "tbl18TS"
Case (Me.[Product Type] = "20. Hydraulics" And Me.Combo33 = "Troubleshoot")
Issue.RowSource = "tbl20TS"
Case (Me.[Product Type] = "21. S-Cams" And Me.Combo33 = "Troubleshoot")
Issue.RowSource = "tbl21TS"
Case (Me.[Product Type] = "23. Air Disc" And Me.Combo33 = "Troubleshoot")
Issue.RowSource = "tbl23TS"
Case (Me.[Product Type] = "99. Misc" And Me.Combo33 = "Troubleshoot")
Issue.RowSource = "tbl99NA"
Case (Me.Combo33 = "PN Cross/Info")
Issue.RowSource = "tblPNCROSS"
End Select
Comment