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 error '800a01a8' Object required: 'False'
- Article ID:
152 - Date Created
Monday, December 19, 2011 - This Article Has been Viewed
2797 times - Short Desc
Checking if your recordset will return any records is a simple task to accomplish. However, sometimes when you are in a hurry, you may make the following mistake, which will generate the Object required: 'False' error. - Details
When you want to check if there are records in your database, make sure that you only use eof or bof one time, as this may happen.Microsoft VBScript runtime error '800a01a8'
Object required: 'False'
/PostCom.asp, line 90 - Recreate Issue
To recreate this issue.
If you are checking your RS (RecordSet) to see if you have any records or not.<%
if rs.eof.eof then
response.write"There are no records available"
end if
%>
In the above code example, you can see where we have double eof.eof
This will generate the above error.
This happens when you get into a rush, or you copy and paste over an existing rs.eof with a new rs.eof, and forget to highlight everything that is needing to be replaced. - Resolve Issue
To resolve this issue.<%
if rs.eof then
response.write"There are no records available"
end if
%>
As you can see, we only had to remove one of the .eof, and the code runs without issue.
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