I'm fairly new to ASP/Database and I'm having difficulty with a output format. I have a page that displays 2 fields of a recordset in a table. There are multiple recordsets in the table. What I have displaying when the page runs is a long, skinny table. What I would like is a shorter and wider table that would display multiple recordsets (preferably three) in the same row before moving to the next row. I've tried some things from 4guysfromrolla.com but I keep getting syntax errors on the output.
Here is the table and the repeat region as I have it. I work in Dreamweaver and use a Access database, which is, IMO, where I'm having problems with the above mentioned tutorials.
Is there anyone that can help me turn this into a multiple columns/same row format. I'd hate to have one long skinny table with about 140 recordsets.
Here is the table and the repeat region as I have it. I work in Dreamweaver and use a Access database, which is, IMO, where I'm having problems with the above mentioned tutorials.
Code:
<%
While ((Repeat1__numRows <> 0) AND (NOT Recordset1.EOF))
%>
<table border="1" cellspacing="0" cellpadding="0">
<tr>
<td width="50"><%=(Recordset1.Fields.Item("LocationID").Value)%></td>
<td><%=(Recordset1.Fields.Item("LocationTitle").Value)%></td>
</tr>
</table>
<%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
Recordset1.MoveNext()
Wend
%>