Har snart prøvet alt - undtagen det rigtige
<%
Set Conn = Server.CreateObject("ADODB.Connection")
Conn.Open "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" &
server.MapPath("db3.mdb")
SQLstmt = "SELECT [sats]*[odds]AS MinSum FROM forslag ;"
'
SQLstmt2 = "SELECT * FROM forslag order by id desc ;"
'response.write SQLstmt
Conn.Execute (SQLstmt)
Set rs = conn.Execute(SQLstmt)
Conn.Execute (SQLstmt2)
Set rs = Conn.Execute(SQLstmt2)
%>
<%
DO WHILE NOT rs.EOF
MinSum = rs("MinSum")
odds = rs("odds")
%>
<%=MinSum%><%=odds%>
<%
rs.MoveNext
LOOP
RS.Close
conn.Close
Set conn = nothing
Set SQLstmt = nothing
%>
Får denne fejl
ADODB.Recordset error '800a0cc1'
Item cannot be found in the collection corresponding to the
requested name or ordinal.
/prove2/prove1.asp, line 29
--
Vil du lære at kode HTML, XHTML, CSS, SSI, ASP eller ASP.NET?
- Pædagogiske tutorials på dansk
- Kom godt i gang med koderne
KLIK HER! =>
http://www.html.dk/tutorials