Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Does not support rs.eof

Status
Not open for further replies.

snowboardr

Programmer
Feb 22, 2002
1,401
PH
I get this error..any ideas?

Microsoft VBScript runtime error '800a01b6'

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


Code:
<%

Set my_conn = Server.CreateObject(&quot;ADODB.Connection&quot;)



my_conn.Open &quot;Provider=Microsoft.Jet.OLEDB.4.0; Data Source=&quot; & Server.MapPath(&quot;database.mdb&quot;) & &quot;;&quot;



Set rs = Server.CreateObject(&quot;ADODB.Recordset&quot;)



strSQL = &quot;SELECT userID, name, email FROM UserEmails&quot; 



' Execute SQL statement

rs = my_conn.Execute(strSQL)



Do while not rs.eof   '# Errors here



Response.Write &quot;User ID# &quot; & rs(&quot;userID&quot;) & &quot;<br>&quot;

Response.Write &quot;Name: &quot; & rs(&quot;name&quot;) & &quot;<br>&quot;

Response.Write &quot;Email: &quot; & rs(&quot;email&quot;) & &quot;<br><br>&quot;



rs.MoveNext

loop



my_conn.close ' Close database connection

set my_conn = nothing 'obj variable released



%>
jason@vzio.com
 
You can also use:

rs.open strSQL, my_conn

Thanks,

Gabe
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top