discusmania
IS-IT--Management
hello guys.... need your help on this:
<%
' to know what work week is today
today=date()
cur_ww=cint(DateDiff("ww",#30-12-2000#,(today),1,1))
for i=1 to cur_ww
'print the workweek
%><Table border=1>
<td>ww <%=i%></td>
<td><%
'check in the database for the records match the
criteria
while not results.eof
'check workweek for each record's date_close
workweek=cint(DateDiff("ww",#30-12-2000#,(results("date_close"),1,1))
'i stuck here!!!!!!!!
'find all the workweek that equal to i and the category is downtime.if got record, grab the amount field value and accumulated if with the other records with the same category and workweek.
'find all workweek that equal to i and category is quality. accumulate the amount.
How to do that?
Please help.
<%
' to know what work week is today
today=date()
cur_ww=cint(DateDiff("ww",#30-12-2000#,(today),1,1))
for i=1 to cur_ww
'print the workweek
%><Table border=1>
<td>ww <%=i%></td>
<td><%
'check in the database for the records match the
criteria
while not results.eof
'check workweek for each record's date_close
workweek=cint(DateDiff("ww",#30-12-2000#,(results("date_close"),1,1))
'i stuck here!!!!!!!!
'find all the workweek that equal to i and the category is downtime.if got record, grab the amount field value and accumulated if with the other records with the same category and workweek.
'find all workweek that equal to i and category is quality. accumulate the amount.
How to do that?
Please help.