Metti caso che hai due textbox(discorso analogo vale per due combobox ecc...) devi fare un semplice if:
codice:
if textbox1.text <> "" and textbox2.text <> "" then
   "SELECT ....FROM... WHERE campo1=valore AND campo2=valore 
elseif textbox1.text <> "" and textbox2.text = "" then
   "SELECT ....FROM... WHERE campo1=valore" 
end if
...Tutto qua