Ver Mensaje Individual
  #55 (permalink)  
Antiguo 22/01/2008, 14:32
ariesagv
 
Fecha de Ingreso: septiembre-2007
Mensajes: 93
Antigüedad: 17 años, 7 meses
Puntos: 0
Re: No coinciden los tipos: [String]

Cita:
Iniciado por JuanRAPerez Ver Mensaje
ummmm pegas tu codigo para verlo (una vez mas)

gracias
mira estoy trajando con el codigo que nos proporciono Shiryu


<%
'Declaracion de variables
Dim Vigente, Tramite, Caduca
estado =trim(request.Form("estado"))

strcon="Provider=SQLOLEDB;Server=x;Database=x;UID= x;PWD=x;"

set oConn = Server.CreateObject("ADODB.Connection")
oConn.Open strcon

SQL = "select Count (*) As Vigente from Prop_Ind where estado = '"&Vigente&"'"

set RS = oConn.execute(SQL)
if Err=0 then
Cuantos=0
if RS.EOF = FALSE then
while RS.EOF=false
Cuantos=Cuantos+1
rs.movenext
wend
end if
end if
if Cuantos<> "" then
%>Hay:<% response.Write cuantos
else
response.Write "no se puede completar la peticion"
end if
cuantos = 0
RS.Close
Set RS = nothing
oConn.Close
set oConn = nothing
%>


cuando pongo este:
SQL = "SELECT estado FROM Prop_Ind Order By estado "
si me hace la consulta y me muestra cuantos tengo.

??????????