ciao a tutti,
ho prelevato dalla sezione script->database lo script "Luke gestione record" e l'ho presonalizzato aggiungendo la visualizzazione di altri record del DB.
Ma adesso mi accade ke se ad esempio un campo del Db è vuoto puoi nella visualizzazione dela pagina "index.asp" mi appare l'errore:

Microsoft JScript runtime error '800a000d'
Type mismatch

questo è lo script della pagina index.asp:

<%@LANGUAGE = JScript%>

<%
var Rs = Cn.Execute("SELECT * FROM anagrafe ORDER BY id DESC");
%>
<html>
<head>
<title>Leggi i dati</title>
<style type="text/css">
td { font: Normal 12px Verdana; }
a { color: #0000FF; }
a:hover { color: #FF0000; }
</style>
</head>
<body>

<table align="center" width="400" cellpadding="1" cellspacing="0" border="1">
<tr>
<td colspan="4">Leggi i dati </td>
</tr>
<%
if (Rs.EOF) Response.Write("<td colspan=\"4\">Nessun dato</td>");
else while (!Rs.EOF)
{
%>
<tr>
<td width="50" align="center">">Mod.</td>
<td width="50" align="center">">Canc.</td>
<td width="150"><%=Server.HTMLEncode(Rs("titolo"))%></td>
<td width="150"><%=Server.HTMLEncode(Rs("data"))%></td>
<td width="150"><%=Server.HTMLEncode(Rs("sottotitolo1" ))%></td>
<td width="150"><%=Server.HTMLEncode(Rs("sottotitolo2" ))%></td>
<td width="150"><%=Server.HTMLEncode(Rs("testo"))%></td>
<td width="150"><%=Server.HTMLEncode(Rs("autore"))%></td>
<td width="150"><%=Server.HTMLEncode(Rs("varie"))%></td>
<td width="150"><%=Server.HTMLEncode(Rs("note"))%></td>
</tr>
<%
Rs.Movenext();
}
%>
<tr>
<td colspan="3">Inserisci</td>
<td align="right">by lukeonweb.net</td>
</tr>
</table>

</body>
</html>
<%Cn.Close()%>


Qual'è il problema? Ho provato a dare ai records del .mdb "si" "consenti lunghezza zero", ma non ha funzionato.
Bye