I have an access db with 60+ records in a table, I am trying to display the records on a page. At this point, I am able to connect to the db, but I can only get the first record within the recordset.
I've tried everything I can think of, so I'm hopeing someone with a fresh mind can review and see what I'm doing wrong.
[code begins here]
<%
Dim conn, rs, DBPath
Set conn = Server.CreateObject("ADODB.Connection")
conn.Open "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & Server.MapPath("../db/login.mdb") & ";"
Set rs = Server.CreateObject("ADODB.RecordSet")
'Set SQL
rsStr = "SELECT title, fname, lname From userinfo"
rs.open rsStr, conn
'This is to display the results from the SQL String
Response.Write "There are " & rs.recordcount & " rows that were returned"
for each x in rs.Fields
Response.Write(" ")
Response.Write(x.name)
Response.Write(" = ")
Response.Write(x.value & "")
next
rs.close
set rs=Nothing
conn.close
set conn = nothing
%>
[/code]
Thanks in advance for all your help!