SET shop = Server.CreateObject("ADODB.Recordset")
SQLstmt=("SELECT TOP5")
SQLstmt= SQLstmt & (" FROM members ORDER BY id ASC")
shop.Open SQLstmt, Connect
<%
Set Connect = Server.CreateObject("ADODB.Connection")
Connect.Open "driver={Microsoft Access Driver (*.mdb)};dbq=" & Server.MapPath("members.mdb")&";pwd=losen"
SET shop = Server.CreateObject("ADODB.Recordset")
SQLstmt=("SELECT TOP 5 * FROM members ORDER BY id ASC")
shop.Open SQLstmt, Connect
%>
det borde funka...
annars får du posta felmeddelandet
<%
Set Connect = Server.CreateObject("ADODB.Connection")
Connect.Open "driver={Microsoft Access Driver (*.mdb)};dbq=" & Server.MapPath("members.mdb")&";pwd=losen"
SQLstmt= "SELECT TOP 5 * FROM members ORDER BY id ASC"
set shop = Connect.execute(SQLstmt)
%>