Para ello escribo:
Código:
¡Pero algo hago mal porque el nreg siempre es igual a 0!....conexion... strSQL= "SELECT Count(*) As nreg from tabla where Categoria = 'Mid(Granada,1,7)' " RS.Open strSQL, strCon, 3 nreg= RS("nreg") RS.Close .... Response.write nreg
¿Qué hago mal?