473,320 Members | 2,080 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Weekly sub-totals



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!
Jul 19 '05 #1
1 1156
That post does not provide enough information to help you.
"PorkyJr" <no****@nospam.net> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...


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!

Jul 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Brenden Bixler | last post by:
Hello. I am using the ASP.NET calendar object and am looking to provide a "weekly view", but not the typical "Outlook" style. Rather, I just want it to render the calendar normally, but only...
0
by: Peter Otten | last post by:
QOTW: "You need 23 C/C++ people to do the job of one Pythoneer ;-)" - Jorge Godoy "I've never seen an 'object-relational mapping' ... which doesn't drive me into a murderous, foam-at-mouth rage...
0
by: Peter Otten | last post by:
QOTW: "Discussion about Python 3000 is heating up. What I haven't seen so far is a list of things that will be dropped from the language to make room for new ideas." - Greg Wilson "The longer I...
0
by: Peter Otten | last post by:
QOTW: "Going from Python to Java (as it's in my case) is real pain I wish nobody to feel... Even with multi-million support for Java from giants like Sun, IBM or Oracle, I find it much easier to...
0
by: Cameron Laird | last post by:
ANNOUNCEMENT: we had an incident with backups of the "Python-URL!" mailing list. It's possible we lost one or two transactions from the last week. If you aren't receiving an e-mailed copy of...
6
by: Cameron Laird | last post by:
QOTW: "That is just as feasible as passing a cruise ship through a phone line." - Carsten Haese, on transporting a COM object across a network. Less vividly but more formally, as he notes, "A COM...
15
by: rinmanb70 | last post by:
I use a db for keeping up with my checkbook and I'm having trouble setting up a new functionality. I get paid every two weeks on Friday, and I need a report to figure my balance that includes only...
1
by: creative1 | last post by:
Hi Everyone, I need help in one more thing. I my report that I want to print under follwoing criteria: Weekly ---------------- Set start and end date automatically to last week Bi-Weekly ...
1
by: associates | last post by:
Hi, I desperately need your help here. I'm trying to work out a better way of producing a weekly report for a job that should show the weekly activities for last week and the current week using...
9
by: magickarle | last post by:
Hi, I have a database in access with the following columns: Day AgentID ManagerID Grade They got information about agents and some grades. I would like to have ONE form with several...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.