Avatar billede th1 Nybegynder
10. maj 2004 - 12:59 Der er 2 kommentarer og
1 løsning

Hva er det for en fejl

Hej jeg er ved at lave en GB som skal være på islansk men da jeg prøver at åbne tagwall.asp  så kommer der denne fejl:


ADODB.Field error '80020009'

Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record.

/tagwall.asp, line 0



her er hele koden for tagwall.asp:

<html>
<head>
<title>Iceo</title>

<LINK href="../scoll1.css" type=text/css rel=stylesheet>


</head>

<BODY TOPMARGIN="0" LEFTMARGIN="0" BGCOLOR="#003355" TEXT="#FFFFFF" style="font-size: 8 pt; font-family: Verdana; margin-left:20" link="#FFFFFF">
<center>
<p style="margin-top: 0; margin-bottom: 0">
<img border="0" src="../images/logotop.jpg" width="707" height="137"></p>
<p style="margin-top: 0; margin-bottom: 0">&nbsp;
</p>
<table width="716" border="0" cellspacing="0" cellpadding="0" height="1" style="border-collapse: collapse"><tr>
  <td width="140" valign=top style="font-size: 8 pt; font-family: Verdana" height="1" background="images/menu-back1.jpg">
  <div style="width: 130; height: 10; border: 1px solid #003355; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1; background-color: #FFFFFF; background-image: url('../images/menu.jpg')">
  <p style="margin-top: 0; margin-bottom: 0" align="center">
  <font color="#000000"><b>Menu</b></font></p>
  </div>
  <div style="width: 130; height: 86; background-image: url('../images/menu%20back.jpg')">
  <p style="margin-top: 0; margin-bottom: 0" align="center">
    <a href="../me.html">ME</a></p>
  <p style="margin-top: 0; margin-bottom: 0" align="center">&nbsp; </p>
  <p style="margin-top: 0; margin-bottom: 0" align="center">
  <a href="../download.html">Download</a></p>
  <p style="margin-top: 0; margin-bottom: 0" align="center">&nbsp; </p>
  <p style="margin-top: 0; margin-bottom: 0" align="center">
    <a href="../hp.html">HP'en</a></p>
  <p style="margin-top: 0; margin-bottom: 0" align="center">&nbsp;
  </p>
  <p style="margin-top: 0; margin-bottom: 0" align="center">
  GB!</p>
  </div>
  <p style="margin-top: 0; margin-bottom: 0" align="center">&nbsp; </p>


 
 
  <p style="margin-top: 0; margin-bottom: 0" align="center">
  <p style="margin-top: 0; margin-bottom: 0" align="center"></div>
  <td width="443" valign=top height="1" bgcolor="#003355">
  <p style="margin-top: 0; margin-bottom: 0" align="center">&nbsp;
  </p>
  <table width="443" height="7" border="0" cellpadding="0" cellspacing="0">
    <tr valign="top">
      <td height="7">
      <div style="width: 430; height: 18; border: 1px solid #000000; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1; background-image: url('../images/menubig.jpg')">
        <p align="center"><b><font size="1">&nbsp;</font></b><font size="1"><b>Gestabókin!</b></font></div>
      </td>
    </tr>
    </table>  <p style="margin-top: 0; margin-bottom: 0" align="center">&nbsp;
  </p>
  <p style="margin-top: 0; margin-bottom: 0" align="center">
  &nbsp;<%
Set Conn = Server.CreateObject("ADODB.Connection")
DSN = "DRIVER={Microsoft Access Driver (*.mdb)}; "
DSN = DSN & "DBQ=" & Server.MapPath ("is.mdb")
Conn.Open DSN

strSQL = "Select * from tagwall"

set rscount = conn.execute("select count(id) as tags from tagwall")
tags = rscount("tags")
set rscount = nothing
%>
    (Það eru <%=tags%> skilaboð) - <a href="tilfoj.asp">Skrifa skilaboð</a></p>
    <p style="margin-top: 0; margin-bottom: 0" align="center">
  &nbsp;</p>
    <p style="margin-top: 0; margin-bottom: 0" align="center">
  <br>
</p>
  <table width="407" height="31" border="0">
    <tr>
      <th scope="col"><%
Set Conn = Server.CreateObject("ADoDB.Connection")
DSN = "DRIVER={Microsoft Access Driver (*.mdb)}; "
DSN = DSN & "DBQ=" & Server.MapPath("is.mdb")
Conn.Open DSN

strSQL = "Select * From tagwall Order by id Desc"
Set rs = Conn.Execute(strSQL)

Do

%>
<table width="443" height="7" border="0" cellpadding="0" cellspacing="0">
    <tr valign="top">
      <td height="7">
      <div style="width: 430; height: 18; border: 1px solid #000000; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1; background-image: url('../images/menubig.jpg')">
        <p align="center"><b><font size="1"><%= rs("nafn") %></font></b></div>
</td>
  </tr>
</table>
<%

Response.Write rs("nafn") & "<br>Skilaboð: " & rs("skilabod") & "</b></i><br><i>" & rs("dato") & "</i> l <i><a href=""mailto:" & rs("email") & """>Email</a></i> l <i><a href=""http://" & rs("hjemmeside") & """ target=""_black"">Heimasíða</a></i><br><br> "


  rs.MoveNext
Loop While Not rs.EOF

Conn.Close
Set Conn = Nothing
%></th>
    </tr>
  </table>  <p align="center">&nbsp;  </p></td>
  <td width="133" valign=top height="1" background="images/menu-back1.jpg">
  <div style="width: 130; height: 10; border: 1px solid #003355; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1; background-color: #FFFFFF; background-image: url('../images/menu.jpg')">
  <p style="margin-top: 0; margin-bottom: 0" align="center">
  <font color="#000000"><span style="font-size: 8pt"><b>Links</b></span></font></p>
  </div>
  <div style="width: 130; height: 91; background-image: url('../images/menu%20back.jpg')">
  <p style="margin-top: 0; margin-bottom: 0" align="center">
  <span style="font-size: 8pt"><a target="_blank" href="http://www.reschat.dk">
  Reschat.dk</a></span></p>
  <p style="margin-top: 0; margin-bottom: 0" align="center">
  <span style="font-size: 8pt"><a target="_blank" href="http://www.newz.dk">
  Newz.dk</a></span></p>
  <p style="margin-top: 0; margin-bottom: 0" align="center">
  <span style="font-size: 8pt">
  <a target="_blank" href="http://www.eksperten.dk">Eksperten.dk</a></span></p>
  <p style="margin-top: 0; margin-bottom: 0" align="center">
  <span style="font-size: 8pt">
  <a target="_blank" href="http://www.serverguider.dk">Serverguider.dk</a></span></p>
  <p style="margin-top: 0; margin-bottom: 0" align="center">
  <span style="font-size: 8pt"><a target="_blank" href="http://www.dummies.com">
  Dummies.com</a></span></p>
  <p style="margin-top: 0; margin-bottom: 0" align="center">
  <span style="font-size: 8pt">
  <a target="_blank" href="http://www.microsof.com">Micosof.com</a></span></p>
  </div>
  <p style="margin-top: 0; margin-bottom: 0" align="center">&nbsp; </p>
  <p style="margin-top: 0; margin-bottom: 0" align="center">&nbsp; </p>
  <p style="margin-top: 0; margin-bottom: 0" align="center">&nbsp; </p>
  <p style="margin-top: 0; margin-bottom: 0" align="center">&nbsp; </p>
  </td></tr>
  </table>

</body>
</html>

håber nogen kan hjælpe

på forhånd tak
Avatar billede medions Nybegynder
10. maj 2004 - 13:02 #1
Fejlen kommer fordi den record du efterspørger ikke findes:

<html>
<head>
<title>Iceo</title>

<LINK href="../scoll1.css" type=text/css rel=stylesheet>


</head>

<BODY TOPMARGIN="0" LEFTMARGIN="0" BGCOLOR="#003355" TEXT="#FFFFFF" style="font-size: 8 pt; font-family: Verdana; margin-left:20" link="#FFFFFF">
<center>
<p style="margin-top: 0; margin-bottom: 0">
<img border="0" src="../images/logotop.jpg" width="707" height="137"></p>
<p style="margin-top: 0; margin-bottom: 0">&nbsp;
</p>
<table width="716" border="0" cellspacing="0" cellpadding="0" height="1" style="border-collapse: collapse"><tr>
  <td width="140" valign=top style="font-size: 8 pt; font-family: Verdana" height="1" background="images/menu-back1.jpg">
  <div style="width: 130; height: 10; border: 1px solid #003355; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1; background-color: #FFFFFF; background-image: url('../images/menu.jpg')">
  <p style="margin-top: 0; margin-bottom: 0" align="center">
  <font color="#000000"><b>Menu</b></font></p>
  </div>
  <div style="width: 130; height: 86; background-image: url('../images/menu%20back.jpg')">
  <p style="margin-top: 0; margin-bottom: 0" align="center">
    <a href="../me.html">ME</a></p>
  <p style="margin-top: 0; margin-bottom: 0" align="center">&nbsp; </p>
  <p style="margin-top: 0; margin-bottom: 0" align="center">
  <a href="../download.html">Download</a></p>
  <p style="margin-top: 0; margin-bottom: 0" align="center">&nbsp; </p>
  <p style="margin-top: 0; margin-bottom: 0" align="center">
    <a href="../hp.html">HP'en</a></p>
  <p style="margin-top: 0; margin-bottom: 0" align="center">&nbsp;
  </p>
  <p style="margin-top: 0; margin-bottom: 0" align="center">
  GB!</p>
  </div>
  <p style="margin-top: 0; margin-bottom: 0" align="center">&nbsp; </p>


 
 
  <p style="margin-top: 0; margin-bottom: 0" align="center">
  <p style="margin-top: 0; margin-bottom: 0" align="center"></div>
  <td width="443" valign=top height="1" bgcolor="#003355">
  <p style="margin-top: 0; margin-bottom: 0" align="center">&nbsp;
  </p>
  <table width="443" height="7" border="0" cellpadding="0" cellspacing="0">
    <tr valign="top">
      <td height="7">
      <div style="width: 430; height: 18; border: 1px solid #000000; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1; background-image: url('../images/menubig.jpg')">
        <p align="center"><b><font size="1">&nbsp;</font></b><font size="1"><b>Gestabókin!</b></font></div>
      </td>
    </tr>
    </table>  <p style="margin-top: 0; margin-bottom: 0" align="center">&nbsp;
  </p>
  <p style="margin-top: 0; margin-bottom: 0" align="center">
  &nbsp;<%
Set Conn = Server.CreateObject("ADODB.Connection")
DSN = "DRIVER={Microsoft Access Driver (*.mdb)}; "
DSN = DSN & "DBQ=" & Server.MapPath ("is.mdb")
Conn.Open DSN

strSQL = "Select * from tagwall"

set rscount = conn.execute("select count(id) as tags from tagwall")
tags = rscount("tags")
set rscount = nothing
%>
    (Það eru <%=tags%> skilaboð) - <a href="tilfoj.asp">Skrifa skilaboð</a></p>
    <p style="margin-top: 0; margin-bottom: 0" align="center">
  &nbsp;</p>
    <p style="margin-top: 0; margin-bottom: 0" align="center">
  <br>
</p>
  <table width="407" height="31" border="0">
    <tr>
      <th scope="col"><%
Set Conn = Server.CreateObject("ADoDB.Connection")
DSN = "DRIVER={Microsoft Access Driver (*.mdb)}; "
DSN = DSN & "DBQ=" & Server.MapPath("is.mdb")
Conn.Open DSN

strSQL = "Select * From tagwall Order by id Desc"
Set rs = Conn.Execute(strSQL)

If Not rs.EOF Then
Do

%>
<table width="443" height="7" border="0" cellpadding="0" cellspacing="0">
    <tr valign="top">
      <td height="7">
      <div style="width: 430; height: 18; border: 1px solid #000000; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1; background-image: url('../images/menubig.jpg')">
        <p align="center"><b><font size="1"><%= rs("nafn") %></font></b></div>
</td>
  </tr>
</table>
<%

Response.Write rs("nafn") & "<br>Skilaboð: " & rs("skilabod") & "</b></i><br><i>" & rs("dato") & "</i> l <i><a href=""mailto:" & rs("email") & """>Email</a></i> l <i><a href=""http://" & rs("hjemmeside") & " target=""_black"">Heimasíða</a></i><br><br> "


  rs.MoveNext
Loop While Not rs.EOF
End If

Conn.Close
Set Conn = Nothing
%></th>
    </tr>
  </table>  <p align="center">&nbsp;  </p></td>
  <td width="133" valign=top height="1" background="images/menu-back1.jpg">
  <div style="width: 130; height: 10; border: 1px solid #003355; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1; background-color: #FFFFFF; background-image: url('../images/menu.jpg')">
  <p style="margin-top: 0; margin-bottom: 0" align="center">
  <font color="#000000"><span style="font-size: 8pt"><b>Links</b></span></font></p>
  </div>
  <div style="width: 130; height: 91; background-image: url('../images/menu%20back.jpg')">
  <p style="margin-top: 0; margin-bottom: 0" align="center">
  <span style="font-size: 8pt"><a target="_blank" href="http://www.reschat.dk">
  Reschat.dk</a></span></p>
  <p style="margin-top: 0; margin-bottom: 0" align="center">
  <span style="font-size: 8pt"><a target="_blank" href="http://www.newz.dk">
  Newz.dk</a></span></p>
  <p style="margin-top: 0; margin-bottom: 0" align="center">
  <span style="font-size: 8pt">
  <a target="_blank" href="http://www.eksperten.dk">Eksperten.dk</a></span></p>
  <p style="margin-top: 0; margin-bottom: 0" align="center">
  <span style="font-size: 8pt">
  <a target="_blank" href="http://www.serverguider.dk">Serverguider.dk</a></span></p>
  <p style="margin-top: 0; margin-bottom: 0" align="center">
  <span style="font-size: 8pt"><a target="_blank" href="http://www.dummies.com">
  Dummies.com</a></span></p>
  <p style="margin-top: 0; margin-bottom: 0" align="center">
  <span style="font-size: 8pt">
  <a target="_blank" href="http://www.microsof.com">Micosof.com</a></span></p>
  </div>
  <p style="margin-top: 0; margin-bottom: 0" align="center">&nbsp; </p>
  <p style="margin-top: 0; margin-bottom: 0" align="center">&nbsp; </p>
  <p style="margin-top: 0; margin-bottom: 0" align="center">&nbsp; </p>
  <p style="margin-top: 0; margin-bottom: 0" align="center">&nbsp; </p>
  </td></tr>
  </table>

</body>
</html>

Prøv sådan...

//>Rune
Avatar billede th1 Nybegynder
10. maj 2004 - 13:07 #2
mange tak det virker :)
Avatar billede medions Nybegynder
10. maj 2004 - 13:13 #3
Anytime :)

//>Rune
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
Kurser inden for grundlæggende programmering

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester