ojala me puedan ayudar estoy haciendo una pag  con un textbox y un botton el cual se ingresan datos para poder buscar en la bd (sql 2000), pero cuando me dedico a llenar los demas campos de mi tabla para mostrar el resultado me sale el sgte error
Source line: set rec = con.Execute(listpachosp) 
Description: No se estableció ningún texto de comando para el objeto de comando.
este es el codigo q estoy realizando para q me puedan ayudar porfavor
 <p>DATOS CORTE</p>
      <table width="790" border="1">
        <tr>
          <th width="138" height="25" align="center" valign="top" scope="row">Fecha Reparto </th>
          <td width="109" height="25" align="center" valign="top">Correlativo</td>
          <td width="115" height="25" align="center" valign="top">Segmento</td>
          <td width="233" height="25" align="center" valign="top">Acuse</td>
          <td width="63" height="25" align="center" valign="top">Ruta</td>
          <td width="92" height="25" align="center" valign="top">Etapa</td>
        </tr>
      <%         
       if(request.Form("cmdbuscar")="Buscar") then
           nomsec = request.Form("TxtCodigoBarra")
             listpachosp = "select piezas_postales.* from piezas_postales where codificacion_pieza = '"&nomsec&"'"
        end if
            set rec = con.Execute(listpachosp)
            while NOT rec.eof
       %>
        <tr>
          <th width="138" height="25" align="center" valign="top" scope="row"><%=rec.fields("codificacion_pieza")%></th>
          <td width="109" height="25" align="center" valign="top"><%=rec.fields("Numero_Envio")%></td>
          <td width="115" height="25" align="center" valign="top"><%=rec.fields("Nombre_destinatario")%></td>
          <td width="233" height="25" align="center" valign="top"><%=rec.fields("direccion")%></td>
          <td width="63" height="25" align="center" valign="top"><%=rec.fields("codificacion_pieza")%></td>
          <td width="92" height="25" align="center" valign="top"><%=rec.fields("comuna")%></td>
        </tr>
      <%
      rec.movenext
        wend    
      %>
      </table>