
29/05/2002, 14:26
|
| | Fecha de Ingreso: mayo-2002
Mensajes: 10
Antigüedad: 23 años Puntos: 0 | |
Re: compo vacio de bd Tienes que validar si el contenido es nulo.
Ejemplo.
si la consulta te trae una sumatoria, promedio te toca validar.
strsql = "select CAMPO_CALCULADO from tabla"
set rs = cn.execute(strsql)
if isnull(rs(0)) then
response.write "Esta vacio"
else
response.write rs(0)
end if
O sino si el select te trae un campo, entonces preguntas
if rs.eof and rs.bof then
response.write "Esta vacio"
else
response.write rs(0)
end if |