Med denn kod fungerar det men det blir rätt många If:s
<table>
<tr>
< If Not recset("kol1") "" Then %>
<td>Kol 1</td>
<% End If
If Not recset("kol2") "" Then %>
<td>Kol 2</td>
<% End If
If Not recset("kol3") "" Then %>
<td>Kol 3</td>
<% End If
If Not recset("kol4") "" Then %>
<td>Kol 4</td>
<% End If
If Not recset("kol5") "" Then %>
<td>Kol 5</td>
<% End If %>
</tr>
<%
Do While Not recset.EOF
%>
<tr>
< If Not recset("kol1") "" Then %>
<td><%=recset("Kol1")%></td>
<% End If
If Not recset("kol2") "" Then %>
<td><%=recset("Kol2")%></td>
<% End If
If Not recset("kol3") "" Then %>
<td><%=recset("Kol3")%></td>
<% End If
If Not recset("kol4") "" Then %>
<td><%=recset("Kol4")%></td>
<% End If
If Not recset("kol5") "" Then %>
<td><%=recset("Kol5")%></td>
<% End If %>
</tr>
<%
recset.MoveNext
Loop
recset.Close
Connect.Close
%>
</table>
381 ms totalt · 4 externa anrop · v20260731065814-full.51f67c91