premetto che una cosa del genere NON l'ho mai fatta
comunque dovresti usare VBA, in pratica devi scrivere qualche riga di codice, in pratica quando premi il pulsante per eseguire la query devi fare una serie di if per crearti la stringa SQL che farai eseguire
esempio
codice:
strSQL="select * from tabelle where 1=1 "
if (campo1.text <> "") then
strSQL=strSQL&"AND campotabella1="&campo1.text
if (campo2.text <> "") then
strSQL=strSQL&"AND campotabella2="&campo2.text
strSQL=strSQL&";"
'lanci la query SQL contenuta nella variabile strSQL