Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Weekly sub-totals

Reply
Thread Tools

Weekly sub-totals

 
 
PorkyJr
Guest
Posts: n/a
 
      04-02-2004


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


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Reply With Quote
 
 
 
 
Matt Foster
Guest
Posts: n/a
 
      04-04-2004
That post does not provide enough information to help you.


"PorkyJr" <> wrote in message
news:%...
>
>
> 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
>
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Weekly view for Calendar control or 3rd Party component =?Utf-8?B?QnJlbmRlbiBCaXhsZXI=?= ASP .Net 4 10-17-2007 05:41 AM
Events - Daily or Weekly BobLaughland ASP .Net 1 03-14-2006 08:35 PM
Weekly Forum Contest at XYZ Computing! Silverstrand Front Page News 0 01-19-2006 01:42 AM
Mitel 3300 weekly reboot... Is it necessary? Williamson, Adam VOIP 24 02-14-2005 03:17 AM
weekly news update mailing list Rijk van Harn ASP .Net 1 01-27-2004 01:58 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57