473,698 Members | 1,996 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1162
That post does not provide enough information to help you.
"PorkyJr" <no****@nospam. net> wrote in message
news:%2******** ********@TK2MSF TNGP12.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
2364
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 display the current week and not any of the other weeks within the given month. If this isn't possible with the built-in component, has anyone else solved this issue with a third party component?
0
1125
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 in a very short time." - Alex Martelli Python objects may be equal and unequal at the same time if you don't pay attention: http://codesnipers.com/?q=node/276&title=Equality-for-Python
0
1049
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 work at writing software, the more I come to appreciate that people are the hardest thing to figure out." - Ned Batchelder An extra generator makes skipping items in a sequence painless, as Diez B. Roggisch shows:
0
1096
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 gain full control over my project when using Python than Java." - Jarek Zgoda "while 1: life.side.bright.look()" - Robin Becker When debugging your code, would you have to dedent the block inside a for loop to run it just once? Of course not:
0
1091
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 this weekly news digest that you should, or are receiving one when you shouldn't, please alert me through an e-mail reply. QOTW: "exical closures bind to names, default arguments bind to values." - Fredrik Lundh...
6
1132
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 object represents a connection to a service or executable that is running on one computer. Transferring that connection to another computer is impossible." "on't burn bandwith by banal banter, post the examples!" - John Machin See the great...
15
6155
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 transactions that are dated before the date of my next payday. Any transactions that are dated on or after my next payday (ones I have scheduled at my bank's website) I'd like to have NOT included in my balance. Is there a way to do this?
1
2943
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 --------------Set start and end dates to last 15 days Monthly----------------Set date to first and last day of last month I am not using dtepicker. I have code for monthly statement EndingDate_msk.Text = Format$(DateSerial(Year(Now),...
1
1839
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 Access 03. In the table "weeklytable", i have the following fields WeeklyID WeeklyActivities ProposedActivities WeekNo Date
9
2173
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 grouping (yearly quarterly and weekly) with the respective average.
0
8674
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9157
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9027
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8861
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6518
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5860
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4619
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3046
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2001
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.