Solved

Object doesn't support this property or method 'eof'

Posted on 2006-06-11
3
1,515 Views
Last Modified: 2012-08-13
I have the following code which keeps throwing the error

Microsoft VBScript runtime  error '800a01b6'

Object doesn't support this property or method: 'eof'


Please help.

                  nString = "select name from seminar where seminarid = '" & vSeminarID & "'"                             
            
              RS=obj_conn.Execute(nString)
            
            if not (RS.eof and RS.bof) then
                 Do while not RS.eof
                 Response.write (RS("name"))
          RS.Movenext
                 Loop
            end if
              response.write (vSeminarID)
                  On Error Resume Next
                  obj_conn.Execute(vSQLString)
            end if
0
Comment
Question by:drai123
  • 2
3 Comments
 
LVL 33

Accepted Solution

by:
sajuks earned 500 total points
ID: 16883037
try changing
     RS=obj_conn.Execute(nString)
to
SET RS=obj_conn.Execute(nString)
0
 
LVL 20

Expert Comment

by:Gawai
ID: 16883241
where your DB connecting sting ?


0
 
LVL 20

Expert Comment

by:Gawai
ID: 16883250
and then try
If (RS.EOF = False) And (RS.BOF = False) Then  ' i think this line is not important here


Do while not RS.eof
                 Response.write (RS("name"))
          RS.Movenext
               Loop
          end if
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
This is a video that shows how the OnPage alerts system integrates into ConnectWise, how a trigger is set, how a page is sent via the trigger, and how the SENT, DELIVERED, READ & REPLIED receipts get entered into the internal tab of the ConnectWise …
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

919 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now