You can construct a query base like this:
sSql = SELECT myFields FROM myTables WHERE 1=1
And now, use variables for the rest of the parameters:
if (Not isNull(combo1.Value)) then
sConditions = sConditions & " AND fieldCombo1 = " & combo1.Value
end if
if (Not isNull(combo2.Value)) then
sConditions = sConditions & " AND fieldCombo2 = " & combo2.Value
End if
Finally you only add your conditions to your original query
sSql = sSql & sConditions
And execute this sSql query.