Maybe someone knows how to do this with a query, but I don't see a way to totally eliminate query criteria in one case, but use it in another by writing some sort of IIF expression. So my solution would be a coded one, on the combo Enter event. In my experience, the Click event, while logical, is flaky. So it would be something like
Code:
If Me.chkMyCheck = False Then
Me.cmbMyCombo.RowSource = "SELECT ChemicalList.PruductName FROM ChemicalList"
Else
Me.cmbMyCombo.RowSource = "SELECT ChemicalList.PruductName FROM ChemicalList WHERE ChemicalList.myCheckedField = True"
End If
Obviously you have to substitute your own field and control names.
Last edited by Micron; 03-15-2017 at 06:38 PM.
Reason: correction
The more we hear silence, the more we begin to think about our value in this universe.
Paraphrase of Professor Brian Cox.