Når ja selfølgelig
Men hvad mener du med at jeg mangler en \'<tr>\' og en \'</tr>\' for hver loop i rs1.
Prøv at skriv det...
Kan man sætte IF RS1(\"SLETTES\")= FALSE THEN lidt tidligere for nu skrives overskriften ud selv om der ingen poster (slettes) se evt
www.vipiil.dk/databaser/re.aspher er hele min kode.
<%
session.LCID = 1030
response.buffer = true
Set Conn = Server.CreateObject(\"ADODB.Connection\")
Conn.Open \"DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=\" & Server.MapPath (\"Ejendomme.mdb\")
%>
<html>
<head>
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=windows-1252\">
<title>vipiil - bolig liste</title>
</head>
<body>
<%
\'først vælger vi kommunerne og grupperer dem
strSQL = \"SELECT Kunde.Kommune FROM Kunde GROUP BY Kunde.Kommune ORDER BY Kunde.Kommune\"
set rs = conn.execute(strSQL)
\'dernest skriver jeg alle posterne ud til de pågældende kommuner
%>
<table width=\"630\" border=\"0\" align=\"left\">
<% do until rs.eof %>
<tr>
<td width=\"250\" valign=\"middle\" colspan=\"2\"><b><span style=\"background-color: #FFFFFF\"><font size=\"3\"><p style=\"word-spacing: 0; margin: 0\"><p> </p><% response.write \"<b>\"& rs(\"kommune\")&\"</b><p>\" %>
<p style=\"word-spacing: 0; margin: 0\">
</font></span></b></td>
<tr>
<td bgcolor=\"#0066FF\" width=\"180\"><b><font size=\"2\" color=\"#FFFFFF\">Beliggenhed</font></b></td>
<td bgcolor=\"#0066FF\" width=\"64\"><b><font size=\"2\" color=\"#FFFFFF\">Kontant</font></b></td>
<td bgcolor=\"#0066FF\" width=\"53\"><b><font size=\"2\" color=\"#FFFFFF\">Brutto</font></b></td>
<td bgcolor=\"#0066FF\" width=\"48\"><b><font size=\"2\" color=\"#FFFFFF\">Netto</font></b></td>
<td bgcolor=\"#0066FF\" width=\"50\"><b><font size=\"2\" color=\"#FFFFFF\">Udbet</font></b></td>
<td bgcolor=\"#0066FF\" width=\"39\"><b><font size=\"2\" color=\"#FFFFFF\">Vær</font></b></td>
<td bgcolor=\"#0066FF\" width=\"42\"><b><font size=\"2\" color=\"#FFFFFF\">Kvm</font></b></td>
<td bgcolor=\"#0066FF\" width=\"51\"><b><font size=\"2\" color=\"#FFFFFF\">Grund</font></b></td>
<td bgcolor=\"#0066FF\" width=\"55\"><b><font size=\"2\" color=\"#FFFFFF\">Sagsnr</font></b></td>
</tr>
<%
strSQL1 = \"SELECT * FROM kunde where (kommune = \'\"& rs(\"kommune\")&\"\') ORDER BY Kontant DESC\"
set rs1 = conn.execute(strSQL1)
do until rs1.eof
%>
<tr>
<%
\'Her tages alle felterne fra slettet sogt og nysag
if rs1(\"SLETTES\")= false then
if rs1(\"solgt\") = true and rs1(\"nysag\") = false then
%>
<td bgcolor=\"#CFDDDE\" width=\"180\"><font size=\"2\"></a><img src=\"../images/so.gif\" align=\"right\"><a href=\"de.asp?Sagsnr=<%=rs1(\"Sagsnr\")%>\"><%=rs1(\"Beliggenhed\")%></td>
<%
elseif rs1(\"solgt\") = false and rs1(\"nysag\") = true then
%>
<td bgcolor=\"#CFDDDE\" width=\"180\"><font size=\"2\"></a><img src=\"../images/ny.gif\" align=\"right\"><a href=\"de.asp?Sagsnr=<%=rs1(\"Sagsnr\")%>\"><%=rs1(\"Beliggenhed\")%></td>
<%
else
%>
<td bgcolor=\"#CFDDDE\" width=\"180\"><font size=\"2\"><a href=\"de.asp?Sagsnr=<%=rs1(\"Sagsnr\")%>\"><%=rs1(\"Beliggenhed\")%></a></td>
<%
end if
%>
<td bgcolor=\"#CFDDDE\" align=\"center\" width=\"64\"><font size=\"2\" width=\"72\"><%=rs1(\"Kontant\")%></td>
<td bgcolor=\"#CFDDDE\" align=\"center\" width=\"53\"><font size=\"2\" width=\"62\"><%=rs1(\"Brutto\")%></td>
<td bgcolor=\"#CFDDDE\" align=\"center\" width=\"48\"><font size=\"2\" width=\"58\"><%=rs1(\"Netto\")%></td>
<td bgcolor=\"#CFDDDE\" align=\"center\" width=\"50\"><font size=\"2\" width=\"61\"><%=rs1(\"Udbet\")%></td>
<td bgcolor=\"#CFDDDE\" align=\"center\" width=\"39\"><font size=\"2\" width=\"49\"><%=rs1(\"Vær\")%></td>
<td bgcolor=\"#CFDDDE\" align=\"center\" width=\"42\"><font size=\"2\" width=\"53\"><%=rs1(\"Kvm\")%></td>
<td bgcolor=\"#CFDDDE\" align=\"center\" width=\"51\"><font size=\"2\" width=\"61\"><%=rs1(\"Grund\")%></td>
<td bgcolor=\"#CFDDDE\" align=\"center\" width=\"55\"><font size=\"2\" width=\"65\"><%=rs1(\"Sagsnr\")%></td>
<%
\'Her sluttes
End If
rs1.movenext
loop
rs.movenext
loop
%>
</table>
</body>
<% conn.close
set conn = nothing %>