I am building a blogger for the first time. I am stumped now because of an error code when I test the page. Any help would be much appreciated.
Error:
ADODB.Field error '800a0bcd'
Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record.
/blog/Default.asp, line 45
-----------------------------------------------------------------------------------------------------
Source code:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<!--#include file="Connections/connBlog.asp" -->
<%
Dim rsPosts__MMColParam
rsPosts__MMColParam = "True"
If (Request("MM_EmptyValue") <> "") Then
rsPosts__MMColParam = Request("MM_EmptyValue")
End If
%>
<%
Dim rsPosts__MMColParam2
rsPosts__MMColParam2 = "1/1/2003"
If (Now() -7 <> "") Then
rsPosts__MMColParam2 = Now() -7
End If
%>
<%
Dim rsPosts
Dim rsPosts_numRows
Set rsPosts = Server.CreateObject("ADODB.Recordset")
rsPosts.ActiveConnection = MM_connBlog_STRING
rsPosts.Source = "SELECT dtePostDate, intCatID, intPostBy, intPostID, memPostContent, txtPostTitle, txtNickName FROM tblBlog, tblUsers WHERE bitPostShow = " + Replace(rsPosts__MMColParam, "'", "''") + " AND tblBlog.intPostby = tblUsers.intUserID AND dtePostDate > #" + Replace(rsPosts__MMColParam2, "'", "''") + "# ORDER BY dtePostDate DESC"
rsPosts.CursorType = 0
rsPosts.CursorLocation = 2
rsPosts.LockType = 1
rsPosts.Open()
rsPosts_numRows = 0
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>The Blog</title>
<link href="myblog.css" rel="stylesheet" type="text/css" />
</head>
<body>
<h1>It's my blog...<br />
<span class="smallprint">(comments on the yellow will not be tolerated)</span> </h1>
<table id="tableBlog">
<tr valign="top">
<td id="tdCategories"> </td>
<td><div class="divPost">
<p><%=(rsPosts.Fields.Item("txtPostTitle").Value)% ></p>
</div></td>
</tr>
</table>
</body>
</html>
<%
rsPosts.Close()
Set rsPosts = Nothing
%>