B
Bennie Sanders
Hi there,
I have a SQL 2000 table with data I display in three columns. The code
I am using sorts the data horizontally but I need it sorted vertically.
Here's the code I am using. Perhaps somebody can help me find a way to
modify it.
CODE
response.write "<table width='100%' cellpadding=1 cellspacing=0>"
if not oMain.eof then
count = 0
do while not oMain.eof
if count mod 3 = 0 then
'there are 3 in the current row, so end the row and start a new
one...
response.write "</tr><tr>"
end if
'add the item number to another column
response.write "<td valign=top><ul><li>" & oMain("catcode")
'increment the count
count = count+1
oMain.MoveNext
loop
Response.Write "</table>"
end if
It's displaying 1 2 3 across instead of down and starting the next
column with 4. I hope I am making sense. Thank you very much.
I have a SQL 2000 table with data I display in three columns. The code
I am using sorts the data horizontally but I need it sorted vertically.
Here's the code I am using. Perhaps somebody can help me find a way to
modify it.
CODE
response.write "<table width='100%' cellpadding=1 cellspacing=0>"
if not oMain.eof then
count = 0
do while not oMain.eof
if count mod 3 = 0 then
'there are 3 in the current row, so end the row and start a new
one...
response.write "</tr><tr>"
end if
'add the item number to another column
response.write "<td valign=top><ul><li>" & oMain("catcode")
'increment the count
count = count+1
oMain.MoveNext
loop
Response.Write "</table>"
end if
It's displaying 1 2 3 across instead of down and starting the next
column with 4. I hope I am making sense. Thank you very much.