Der opstod et overløb
Hvad sker der her ?Der opstod en Microsoft VBScript-kørselsfejl fejl '800a0006'
Der opstod et overløb
/nb/RS/Download/Downloads.asp, linje 13
Min Downloads.asp :
<%
Response.Buffer = True
Set myConn = Server.CreateObject("ADODB.Connection")
myConn.Open "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath("Files.mdb")
Set rs = Server.CreateObject("ADODB.RecordSet")
strSQL = "SELECT TOP 5 * FROM Files ORDER BY Hits"
rs.Open strSQL, myConn, 1, 3
%>
<%
maxwidth=RS("hits")
while not RS.EOF
nWidth=fix(150*(RS("hits")/maxwidth))
if nWidth=0 then nWidth=1
wend
%>
<html>
<head>
<title></title>
</head>
<body>
<table border="0" cellspacing="0" cellpadding="2">
<tr>
<% Do While Not rs.EOF %>
<td width="50%">Hits</td>
<td width="50%"><img src="graf.gif" width="<%=nWidth%>" height="10" border="0"></td>
</tr>
<tr>
<td width="50%"><%=RS("Hits")%>
</td>
<td width="50%"></td>
</tr>
<%
rs.Movenext
Loop
myConn.Close
Set myConn = Nothing
%>
</table>
</body>
</html>
Mvh
<% Wall %>
