![Adios](http://static.forosdelweb.com/fdwtheme/images/smilies/adios.gif)
Muchas graciasss
![apachar ojo](http://static.forosdelweb.com/fdwtheme/images/smilies/wink.png)
<%
set rs = Server.CreateObject("ADODB.Recordset")
rs.ActiveConnection = "dsn=Alumni"
cond = "0=0"
if n1<>"" then cond=cond&" AND [nombre]='"&n1&"'"
if n2<>"" then cond=cond&" AND [apellido]='"&n2&"'"
if n3<>"" then cond=cond&" AND [Industrias].[Industria]='"&n3&"'"
if n4<>"" then cond=cond&" AND [PaisParticular]='"&n4&"'"
if n5<>"" then cond=cond&" AND [cargohmc]='"&n5&"'"
rs.Source = "Select Nombre,Apellido,[Industrias].[Industria],PaisParticular,CargoHMC From Principal Left Join Industrias on [Industrias].[Industria]=[Principal].[IndustriaEmpresa] WHERE " & cond
rs.CursorType = 0
rs.CursorLocation = 2
rs.LockType = 1
rs.Open %>
<%cantFil=1%>
<%do while not rs.eof AND cantFIL<=6
response.write("<tr>")
formato="height='22' class='style27'"
response.write("<td " & formato & "><div align='center'>" & rs.fields("Nombre") & "</div>")
response.write("<td " & formato & "><div align='center'>" & rs.fields("Apellido") & "</div>")
response.write("<td " & formato & "><div align='center'>" & rs.fields("PaisParticular") & "</div>")
response.write("<td " & formato & "><div align='center'>" & rs.fields("CargoHMC") & "</div>")%>
<td><input type="button" name="Detalle" value="Detalle" class="style7" id="Detalle"></td>
<%response.write("</tr>")
rs.movenext
cantFIL=cantFIL+1
loop
rs.close
%>
</table>
</div>