Weekly sub-totals

P

PorkyJr

Have a ASP form/page that displays information based on a date range. I
would like it to print sub-totals for the week(s) (ends on Saturday),
plus keep a running total for the end of the report. Not sure how to
have the break happen.

**code start**
If IsDate(lin) Then
wknda = lin
End If

If IsDate(loff) Then
wkndb = loff
End If

wkndbrk = Weekday(wkndb)

If (Weekday(wkndb) < wkndbrk) Then
Response.Write("<td></td><td></td><td>Weekly Total:</td><td>" & wkhrs)
'& "</td><td>Possible Vacation</td></tr>")
wkhrs = 0
wkndbrk = 0
End If

**code end**


Thanks in advance
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,045
Latest member
DRCM

Latest Threads

Top