Me marca ocurre una excepcion en la linea resaltada en rojo...
Código HTML:
<%
sql="SELECT nombre,id FROM clientes ORDER BY id ASC"
set RS=conexion.execute(sql)
if err=0 then
if rs.eof=false the
clientes=rs.getrows
rs.close
for i=0 to ubound(clientes,2)
sql="SELECT nomcte, rfc, numfact FROM ventas WHERE nomcte = '" &_
clientes(0,i) & "';"
Set RS=conexion.execute(sql)
if Err=0 then
if RS.EOF=FALSE then
while RS.EOF=FALSE
[COLOR="Red"]response.write("ID:" & rs("id")& " " & "NOMBRE:" & rs2("nomcte") &" " & "RFC:" & rs2("rfc") &" " & "FACTURA:" & rs2("numfact") & "<br>")[/COLOR]
RS.movenext
wend
else
response.Write "no se encontraron recibos para este cliente"
end if
else
response.Write "Error de programacion<br />Consulta " & SQL &"<br />"& Err
end if
rs.close
next
else
response.Write "No se encontraron clientes"
end if
else
response.Write "Error de programacion<br />Consulta " & SQL &"<br />"& Err
end if
conexion.close
set RS=nothing
set conexion=nothing
%>
no sé a que se deba...
Saludos...