CFF KB - Carrz-Fox-Fire Promotions Knowledge Base
CFF KB is all about 1 thing: The Sharing of Knowledge and the Power we gain from it.Knowledge Base
- Breadrumbs:
Microsoft VBScript runtime (0x800A01A8) Object required: ' closing recordset
- Article ID:
24 - Date Created
Tuesday, October 5, 2010 - Last Updated
Wednesday, November 17, 2010 - This Article Has been Viewed
2207 times - Short Desc
When you open a recordset, you need to make sure that you close it. But sometimes you can close it in the wrong area of your code page. - Details
When opening a Recordset, making sure that you close it is a very important part of good programming and also to help reduce the amount of resources that are used up on your site through the recordsets being closed properly.
Sometimes we close them to early, or way past their used time, and in them rare cases, we will get errors like we have here.
Microsoft VBScript runtime (0x800A01A8)
Object required: ''
mypage.asp, line 127 - Recreate Issue
To recreate this error, open your recordset and then close it in an area after its used time.
<%
rs.close
%> - Resolve Issue
To resolve this issue, make sure that you close your recordset in the proper place.
Sometimes it takes a lot of trial and error to get the right closing area.
If you are using a recordset for page.asp?site=mine
Then you can close the recordset at the footer.asp (Create a footer.asp page and use it to close your recordsets with)
So, you will have something like this
header.asp<%
if request.querystring("site")"mine" then
set rs = sql.connect
' Here we open our recordset named: rs
end if
%>
footer.asp<%
if request.querystring("site")"mine" then
rs.close
' Here we close our recordset named: rs for the Query of mine.
end if
%>
This will make sure that it is not trying to close where it is not being used.
Share With Friends (Updated 6-8-2010)
Recent Articles
All Topics
- Coming Soon - Knowledge Exchange
Trending Articles
- Microsoft VBScript runtime error '800a0046' Permission denied FileSystemObject 24695
- Microsoft OLE DB Provider for SQL Server error '80040e57' String or binary data would be truncated. or The field is too small to accept the amount of data you attempted to add. Try inserting or pasting less data. 21297
- ADODB.Parameters error '800a0e7c' Parameter object is improperly defined 19544
- After Effects warning: Audio conforming failed for the following file .cfa. Perhaps due to disk space 17785
- The backup set holds a backup of a database other than the existing 16825