من ميخوام تعداد ركورهاي كه در هر دفته لود ميشه فقط 5 تا باشه
و با هر با كليك كردن رو دكمه next بقيه ركوردها را بصورت 5 تا 5 تا بياره
كد كانكشن من به شكل زير هست
[/quote]
[TheDatabaseFile = ".\db\News.mdb"
set OpenDatabase = server.createobject("adodb.connection")
OpenDatabase.Open "DRIVER={Microsoft Access Driver (*.mdb)}; " & "DBQ=" & server.mappath ( TheDatabaseFile )
sqlquery = "SELECT * FROM NwsTyp inner join Nws on Nws.NwsTypIdn=NwsTyp.NwsTypIdn Order By NwsDte"
set ResultSet = OpenDatabase.execute( sqlquery )
do until ResultSet.eof %>
<table width="97%" border="0" cellspacing="1" cellpadding="1" dir=rtl>
<tr>
<td class=Auto>
<div align="right"><font size="2" color="#000066"><a href=javascript:news()>
<font size="2" color="#000066"><font color="#000099"><%=ResultSet("NwsTtl")%></font></font><font color="#000099">
</font></a> </font></div>
</td>
</tr>
</table>
<%
ResultSet.movenext
loop
ResultSet.close
set ResultSet = nothing
OpenDatabase.close
set OpenDatabase = nothing
%>
و با هر با كليك كردن رو دكمه next بقيه ركوردها را بصورت 5 تا 5 تا بياره
كد كانكشن من به شكل زير هست
[/quote]
[TheDatabaseFile = ".\db\News.mdb"
set OpenDatabase = server.createobject("adodb.connection")
OpenDatabase.Open "DRIVER={Microsoft Access Driver (*.mdb)}; " & "DBQ=" & server.mappath ( TheDatabaseFile )
sqlquery = "SELECT * FROM NwsTyp inner join Nws on Nws.NwsTypIdn=NwsTyp.NwsTypIdn Order By NwsDte"
set ResultSet = OpenDatabase.execute( sqlquery )
do until ResultSet.eof %>
<table width="97%" border="0" cellspacing="1" cellpadding="1" dir=rtl>
<tr>
<td class=Auto>
<div align="right"><font size="2" color="#000066"><a href=javascript:news()>
<font size="2" color="#000066"><font color="#000099"><%=ResultSet("NwsTtl")%></font></font><font color="#000099">
</font></a> </font></div>
</td>
</tr>
</table>
<%
ResultSet.movenext
loop
ResultSet.close
set ResultSet = nothing
OpenDatabase.close
set OpenDatabase = nothing
%>