I've researched through the forum but have not found my situation or answer.
I am trying to work with an Access 2000 database through ASP. I am running into a situation where I get records, but my recordset is showing false for both BOF and EOF. In addition, I recieve the following error:
error '80020009'
Exception occurred.
/kkinnear/mktplc.asp, line 35
Line 35 is:
<div align=center style="background-color: #000000; color: #FFFFFF;"><b><%=strCurrCategory%></b></div><br>
If someone could take a look at the following code (a "working" example is at
<html>
<head>
<title>UMFA Marketplace</title>
</head>
<body>
<% Dim strConnection, rsData, strQuery, intRecords, strCurrCategory, x
strConnection = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=" & Server.MapPath("\kkinnear\db\umfa.mdb"
& ";" & _
"Persist Security Info=False"
Set rsData = Server.CreateObject("ADODB.Recordset"
strQuery = ("SELECT Count(ID) As CatNbr FROM marketplace WHERE Active_IND = 'Y'"
rsData.Open strQuery, strConnection, adOpenForwardOnly
intRecords=rsData("CatNbr"
rsData.Close
strQuery = ("SELECT Category_Type_ID, Date_Entered, Category, Title, Text FROM marketplace WHERE Active_IND = 'Y' ORDER BY Category_Type_ID, Date_Entered DESC"
rsData.Open strQuery, strConnection, adOpenStatic
%>
<table border=0 width=85% align=center cellspacing=10>
<tr>
<% do until rsData.EOF %>
<% strCurrCategory=rsData("Category"
%>
<td valign=top width=25%>
<div align=center style="background-color: #000000; color: #FFFFFF;"><b><%=strCurrCategory%></b></div><br>
<% do until strCurrCategory <> rsData("Category"
%>
<div style="font-size: 8pt; text-align: justify;">
<b><%=rsData("Title"
%>,</b> <%=rsData("Text"
%></div><hr size=1>
<% rsData.MoveNext
loop %>
</td>
<% loop %>
</tr></table>
<% rsData.Close %>
<% set rsData=Nothing %>
</body>
</html>
Thanks,
Kristen
I am trying to work with an Access 2000 database through ASP. I am running into a situation where I get records, but my recordset is showing false for both BOF and EOF. In addition, I recieve the following error:
error '80020009'
Exception occurred.
/kkinnear/mktplc.asp, line 35
Line 35 is:
<div align=center style="background-color: #000000; color: #FFFFFF;"><b><%=strCurrCategory%></b></div><br>
If someone could take a look at the following code (a "working" example is at
<html>
<head>
<title>UMFA Marketplace</title>
</head>
<body>
<% Dim strConnection, rsData, strQuery, intRecords, strCurrCategory, x
strConnection = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=" & Server.MapPath("\kkinnear\db\umfa.mdb"
"Persist Security Info=False"
Set rsData = Server.CreateObject("ADODB.Recordset"
strQuery = ("SELECT Count(ID) As CatNbr FROM marketplace WHERE Active_IND = 'Y'"
rsData.Open strQuery, strConnection, adOpenForwardOnly
intRecords=rsData("CatNbr"
rsData.Close
strQuery = ("SELECT Category_Type_ID, Date_Entered, Category, Title, Text FROM marketplace WHERE Active_IND = 'Y' ORDER BY Category_Type_ID, Date_Entered DESC"
rsData.Open strQuery, strConnection, adOpenStatic
%>
<table border=0 width=85% align=center cellspacing=10>
<tr>
<% do until rsData.EOF %>
<% strCurrCategory=rsData("Category"
<td valign=top width=25%>
<div align=center style="background-color: #000000; color: #FFFFFF;"><b><%=strCurrCategory%></b></div><br>
<% do until strCurrCategory <> rsData("Category"
<div style="font-size: 8pt; text-align: justify;">
<b><%=rsData("Title"
<% rsData.MoveNext
loop %>
</td>
<% loop %>
</tr></table>
<% rsData.Close %>
<% set rsData=Nothing %>
</body>
</html>
Thanks,
Kristen