I have been searching everywhere for this, and can't find nothing. Been thru the forums search, other sites, etc, nothing.
I need to display a table with 13 rows across and 52 down(kind of).
The number 52 is for the 52 Weeks in the year. What I have is a DB where we complete tickets/work orders. I want to display how many tickets/work orders each site completed per week, up to 52 weeks, even if the year is not completed yet. If the data is available until week 15, than for the rest display 0 tickets.
Want to loop thru the 52 records in the weeks DB and than if the record in the tickets table matches that week, display the Site_name and ticket count.
Here is how it is now:
Site1 Week 1 Showing 13 times the tickets for week 1.
Site1 Week 2 Same as above but week 2.
Up to end of the tickets DB records for Site1.
Than it goes to Site2.
Site2 Week 1 Showing 13 times the tickets for week 1.
Site2 Week 2 Same as above but for week 2.
Than next site, etc. I have 5 sites in total.
Here is the code:
<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#6B8EB5">
<% While NOT RS.EOF %>
<tr bgcolor="#FFFFFF">
<td bgcolor="#6B8EB5" nowrap><%=RS("Site_Name"
%></td>
<td>Week <%=RS("Week"
%></td>
<% For i=1 to 13 %>
<td nowrap><%=RS("Ticket_Count"
& " Tkts"%></td>
<% Next %>
</tr>
<% RS.MoveNext
WEND
%>
</table>
What I would LIKE if possible, is this:
Site Name Week1 Week2 so on to Week13
Site1 13 tickets 15 tickets 20 tickets
Site2 13 tickets 20 tickets 18 tickets
So On until all the Sites have been finished for the first 13 weeks.
Than, continue again with Week 14 thru 26.
Than, continue again with Week 26 thru 38.
Etc, etc.
ANYONE PLEASE CAN HELP ME WITH THIS? Been trying for many days now. I have 4-5 different ways I tried to format the table, but no matter what it will not work.
PLEASE. THANK YOU...
I need to display a table with 13 rows across and 52 down(kind of).
The number 52 is for the 52 Weeks in the year. What I have is a DB where we complete tickets/work orders. I want to display how many tickets/work orders each site completed per week, up to 52 weeks, even if the year is not completed yet. If the data is available until week 15, than for the rest display 0 tickets.
Want to loop thru the 52 records in the weeks DB and than if the record in the tickets table matches that week, display the Site_name and ticket count.
Here is how it is now:
Site1 Week 1 Showing 13 times the tickets for week 1.
Site1 Week 2 Same as above but week 2.
Up to end of the tickets DB records for Site1.
Than it goes to Site2.
Site2 Week 1 Showing 13 times the tickets for week 1.
Site2 Week 2 Same as above but for week 2.
Than next site, etc. I have 5 sites in total.
Here is the code:
<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#6B8EB5">
<% While NOT RS.EOF %>
<tr bgcolor="#FFFFFF">
<td bgcolor="#6B8EB5" nowrap><%=RS("Site_Name"
<td>Week <%=RS("Week"
<% For i=1 to 13 %>
<td nowrap><%=RS("Ticket_Count"
<% Next %>
</tr>
<% RS.MoveNext
WEND
%>
</table>
What I would LIKE if possible, is this:
Site Name Week1 Week2 so on to Week13
Site1 13 tickets 15 tickets 20 tickets
Site2 13 tickets 20 tickets 18 tickets
So On until all the Sites have been finished for the first 13 weeks.
Than, continue again with Week 14 thru 26.
Than, continue again with Week 26 thru 38.
Etc, etc.
ANYONE PLEASE CAN HELP ME WITH THIS? Been trying for many days now. I have 4-5 different ways I tried to format the table, but no matter what it will not work.
PLEASE. THANK YOU...