J
Jen
Is it possible (how) to display a new record every week (or day) from a
recordset?
recordset?
Jen said:Is it possible (how) to display a new record every week (or day) from a
recordset?
Jen said:Sorry for giving such bad description.
I have a very simple recordset that fetches data from a similarly very
simple table. The table is named "Medlemsformaner", and has only two
columns: 1: Id (int), 2: Ledare (ntext). The recordset fetches the text in
"Ledare" and presents them like this:
<%sql="select * from Medlemsformaner order by Id desc"%>
<!--#include virtual="/databas/connection.inc" -->
<%do until rst.eof =true%>
<%=rst("Ledare")%><br>
<br>
<%rst.movenext
loop%>
The database is sql server 2003.
Jen.
And still for clearance; these would be shown onlu for a couple of lines
length. On top of this I would need to show one whole record (text in
"formaner") every week so that it would automatically show a different
record every week.
Jen
Jen said:If there are 20 records then the cykle
should start over after 20 weeks.
This way it could be done, yes, but I'm not the one that's gonna be
updating these in the future. That's why I'm looking for a completely
automated solution, preferrably based on the id-value. The end user
shouldn't have to worry about weeknumbers or similar.
Jen.
Hi, and thanks. Do I need to make another column ("WeekNo" or "boolField")
in the table?
Now I get:
Microsoft VBScript runtime error '800a01a8'
Object required: ''
/ny_pa_kommande/test.asp, line 16
..where line 16 is the line "Set rs = Conn.Execute(sql)"
I have made those fields too but still get the same "Object required.."
error
Jen
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.