Hola
De acuerdo, es tal y como te dije anteriormente, solo que hay que modificar la consulta
Código asp:
Ver originalsSQL="Select "&variable&" from tabla Where fecha ='" & fecha & "' and hora >= '" & aux_h_inicio &"' and hora <= '" & aux_h_fin &"'"
Fijate que no tiene comillas simples
Suerte