Vis kun 50 tegn..
Hejsa ..Jeg har nedstående script, men vil gerne gøre sådan at den KUN viser 50 tegn af posten Tekst, hvordan gør jeg det ?
<%
Set Connection = Server.CreateObject("ADODB.Connection")
Connection.Open "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ="&Server.MapPath("../../../db/msskibsavisen.mdb")
SQLstringK="SELECT TOP 5 * FROM tabel order by id desc"
SET KRS=Connection.Execute(SQLstringK)
%>
<% while not KRS.EOF%>
<table class=celHead cellSpacing=1 width=456 border=0 cellpadding="2">
<tr>
<td width="100%" class=celHead><FONT class=txtHead><b><% = KRS("Overskrift") %></b></FONT></td>
</tr>
<tr>
<td width="100%" class=celCont><FONT class=txtLead><% = KRS("Tekst")%><br>
</FONT><font class="txtLead"><a href="link.asp"></a><a href="visartikel.asp?id=<% = KRS("ID") %>">Læs mere</a></font></td>
</tr>
<tr>
<td width="100%" class=celLead><FONT class=txtTiny> Tilføjet d. <% = KRS("Dato") %></FONT></td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="456">
<tr>
<td width="100%"> </td>
</tr>
</table>
<%
KRS.MoveNext
wend
KRS.close
set KRS =nothing
connection.close
set connection = nothing
%>
