Unfortunately dependent combo boxes do not function properly in continuous or datasheet forms.
According to "Building Microsoft Applications" by Microsoft Press there is a way to do it. I've tried it with mixed results on a form cataloguing errors found on inspections. The main way is to get the source of the form to be a query containing references to the 2nd combo box.
The query below is the source to the form i mentioned. Error Group is the first combo and suberror is the dependant combo box.
The trick to getting it to work is unbound text boxes over the top of combo boxes. As a user enters one box the VBA automatically moves the focus to the combo box.
SELECT tblaradvisertrainingissues.artrainingissueid, tblaradvisertrainingissues.inspectid, tblaradvisertrainingissues.entrydate, tblaradvisertrainingissues.daterequested, tblaradvisertrainingissues.received, tblaradvisertrainingissues.datereceived, tblaradvisertrainingissues.itemtype, tblaradvisertrainingissues.requestedby, tblaradvisertrainingissues.requestedby, tblaradvisertrainingissues.suberror, tblerrortypes.errorgroup, tblerrortypes.suberrortype, tblaradvisertrainingissues.aradviserid, tblaradvisertrainingissues.arid, tblaradvisertrainingissues.factfinddate, tblaradvisertrainingissues.itemdetails
FROM tblerrortypes RIGHT JOIN tblaradvisertrainingissues ON tblerrortypes.suberrorid = tblaradvisertrainingissues.suberror
ORDER BY tblaradvisertrainingissues.daterequested;
|