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.
  • Breadrumbs:
  • Microsoft VBScript runtime error '800a01a8' Object required: 'False'

  • CFF Knowledge Base - Share With Facebook CFF Knowledge Base - Share on Twitter CFF Knowledge Base - Share on Reddit CFF Knowledge Base - Share on Digg It CFF Knowledge Base - Share on Stumble Upon It CFF Knowledge Base - Share on Delicious
    Share With Friends (Updated 6-8-2010)
  • 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.