OK this code uses BatchNumber and ReplicateNumber instead of leg and description, but the ideas the same.
As you can see I disable the other combo so things work, but I want the users to be able to switch between selection methods. So how can I make this work and leave the other enabled.

VB Code:
  1. Private Sub cboRep_Click()
  2.    
  3.     cboBatch.Enabled = False
  4.    
  5.     If (Not (cboRep.Text = "")) Then
  6.         cnnCon.Open dataText
  7.         rsRes.Open "SELECT DISTINCT BatchNumber " & _
  8.                    "FROM tblShadeDetails " & _
  9.                    "WHERE ProjectTitle = " & Chr(34) & _
  10.                                        cboProject.Text & Chr(34) & _
  11.                    " AND ExperimentID = " & Chr(34) & _
  12.                                        cboExperiment.Text & Chr(34) & _
  13.                    " AND LegNumber = " & Val(cboLeg.Text) & _
  14.                    " AND ReplicateNumber = " & Chr(34) & _
  15.                                       cboRep.Text & Chr(34), _
  16.                     cnnCon, _
  17.                     adOpenKeyset, _
  18.                     adLockReadOnly, _
  19.                     adCmdText
  20.                    
  21.         With rsRes
  22.             If (Not (.BOF And .EOF)) Then
  23.                 .MoveFirst
  24.                 While (Not .EOF)
  25.                     cboBatch.Text = .Fields("BatchNumber").Value
  26.                     .MoveNext
  27.                 Wend
  28.             End If
  29.         End With
  30.        
  31.         rsRes.Close
  32.         cnnCon.Close
  33.        
  34.     End If
  35.    
  36.     setWashCycles
  37.    
  38.    
  39. End Sub