I am looking to display a series of names (whose fields have been concatenated) grouped by room assignment, for example. And I can get one table to display, but I need to get a table for each room assignment. Hope that makes sense.
An example of what I would want one of my tables to look like is:
------------------------
| E 1 <- Table 1 Header
------------------------
| Smith, John A. <- Table 1 Names
------------------------
| Doe, Bob D. <- "
------------------------
| Roberts, Jeff P. <- "
------------------------
------------------------
| E 2 <- Table 2 Header
------------------------
| Doe, Jane <- Table 2 Names
------------------------
| Simms, Harriet <- "
------------------------
| Winters, Kris P. <- "
------------------------
Currently, I have been able to display all fields from a recordset in a table using the following code.
<table border=1 cellpadding="1" cellspacing="2" cols=<%=rsSignup.fields.Count%>>
<tr>
<% dim objField
For Each objField in rsSignup.fields %>
<TH> <%=objField.name %> </TH>
<% Next %>
</tr>
<% Do while Not rsSignup.EOF %>
<tr>
<% For each objField in rsSignup.Fields %>
<TD align=right>
<% if IsNull(objField) Then
Response.Write(" ")
else
Response.Write(objField.Value)
End if
%>
</TD>
<% Next
rsSignup.MoveNext %>
</tr>
<% Loop %>
</Table>
I feel like I am really close to getting it all grouped...but I need some direction!
Help?
An example of what I would want one of my tables to look like is:
------------------------
| E 1 <- Table 1 Header
------------------------
| Smith, John A. <- Table 1 Names
------------------------
| Doe, Bob D. <- "
------------------------
| Roberts, Jeff P. <- "
------------------------
------------------------
| E 2 <- Table 2 Header
------------------------
| Doe, Jane <- Table 2 Names
------------------------
| Simms, Harriet <- "
------------------------
| Winters, Kris P. <- "
------------------------
Currently, I have been able to display all fields from a recordset in a table using the following code.
<table border=1 cellpadding="1" cellspacing="2" cols=<%=rsSignup.fields.Count%>>
<tr>
<% dim objField
For Each objField in rsSignup.fields %>
<TH> <%=objField.name %> </TH>
<% Next %>
</tr>
<% Do while Not rsSignup.EOF %>
<tr>
<% For each objField in rsSignup.Fields %>
<TD align=right>
<% if IsNull(objField) Then
Response.Write(" ")
else
Response.Write(objField.Value)
End if
%>
</TD>
<% Next
rsSignup.MoveNext %>
</tr>
<% Loop %>
</Table>
I feel like I am really close to getting it all grouped...but I need some direction!
Help?
Comment