Bueno, no se exactamente los tipos de datos que manejas y demas pues veo que tienes operadores LIKE, regularmente estas consultas dinamicas las deberias de manejar divididas para vencerlas
Código:
argCount = 0
qry = "SELECT campo FROM tabla"
if len(opcion(1)) > 0 then
if argCount = 0 then
qry = qry & " WHERE "
else
qry = qry & " OR "
end if
qry = qry & " (tamano LIKE '%mi%' or tamano LIKE '%ni%') "
argCount = argCount + 1
end if
if len(opcion(2)) > 0 then
if argCount = 0 then
qry = qry & " WHERE "
else
qry = qry & " OR "
end if
qry = qry & " (tamano LIKE '%pe%')"
argCount = argCount + 1
end if
etc..
Saludos