I am not sure how to explain this.
I would like my web page to display some info like this:
Person One Name
Item 1
Item 2
Item 3
Person Two Name
Item 1
Item 2
Item 3
I have a query that pulls all of the data I need from two tables. I have tried using Do While loops in diferent places to get the data.
I get this in one place:
Person One Name
Item 1
Item 2 Item3
And this in another:
Person One Name
Item 1
Person Two Name
Item 1
Person One Name
Item 2
I am not sure what I need to do in order to get the info to display correctly. Maybe a different query, maybe a table structure.
You folks have been great at answering my other questions... thanks alot!
I would like my web page to display some info like this:
Person One Name
Item 1
Item 2
Item 3
Person Two Name
Item 1
Item 2
Item 3
I have a query that pulls all of the data I need from two tables. I have tried using Do While loops in diferent places to get the data.
I get this in one place:
Person One Name
Item 1
Item 2 Item3
And this in another:
Person One Name
Item 1
Person Two Name
Item 1
Person One Name
Item 2
I am not sure what I need to do in order to get the info to display correctly. Maybe a different query, maybe a table structure.
You folks have been great at answering my other questions... thanks alot!
Code:
<%
strMonth = Request.QueryString("MonthID")
strSQL = "SELECT rsm.FName, rsm.LName, Month([DateSold]) AS MonthSold, sales.CustName, sales.SysConfig, sales.HostVend, sales.Type, sales.Amount, sales.Margin, rsm.ID FROM sales INNER JOIN rsm ON sales.RSMID = rsm.ID WHERE Month([DateSold])=" & strMonth
set rs = con.execute(strSQL)
If Not rs.BOF Then
Do While Not rs.EOF
%>
<table width="70%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><%=rs("FName")%></td>
</tr>
<tr>
<td><%=rs("CustName")%></td>
</tr>
</table>
<%
rs.MoveNext
Loop
End If
%>