473,765 Members | 2,065 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Calculating weekdays only

G
I would like to input a certain date and then another date for a deadline.
To calculate (or count) weekdays but NOT weekends, what formula would i use
in my query column heading in finding the difference in days?

Nov 12 '05 #1
1 5506
See if these will help.
http://www.mvps.org/access/datetime/date0012.htm
http://www.mvps.org/access/datetime/date0011.htm

--
Wayne Morgan
"G" <sk**@optusnet. com.au> wrote in message
news:3f******** *************** @news.optusnet. com.au...
I would like to input a certain date and then another date for a deadline.
To calculate (or count) weekdays but NOT weekends, what formula would i use
in my query column heading in finding the difference in days?

Nov 12 '05 #2

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

Similar topics

2
8056
by: Tiernan | last post by:
Hi all I'm looking for a way to find the number of weekdays between 2 dates In my form I have three fields for a begin date (dd)(mm)(yyyy) and three for the end date (dd)(mm)(yyyy) Now these values will be stored into a database and at the same time there will be an e-mail generated and send to me that contains the starting date en the end date . But now I want an extra line in this e-mail that tells me howmany days there are between the...
4
12682
by: John | last post by:
hey all..... alright, I am frusterated to the point of throwing my machine out the window (this board went down, trying to find stuff on google, this has been a nightmare) so I hope you guys can help me with a solution. This is what I am trying to do: Pretty much, there are two dates in my database, a start date, and an end
1
4198
by: Htk | last post by:
I have two date fields: -Inquiry Date -Action Date I'm trying to use a query expression on this. Using the datediff expression, I can get the amount of days that seperate the two dates. But I would like to know how I can get only a count of the weekdays only. I'm not sure if there is another expression I can use to get the result.
8
2765
by: James Fortune | last post by:
I'm doing some computations in order to do capacity planning. Instead of using some function from an Access book to do the weekday calculation, I decided to come up with an alternate method since a typical capacity report will look only at hours quoted for the next six months. I remembered Zeller's Congruence from a Number Theory class I took at O.U. (that extra Bachelor's Degree in Applied Mathematics was useful after all) and adapted...
3
2938
by: brchudson | last post by:
We use an Access database as a task scheduler. I thought I could include a validation rule that would make it so tasks could not be scheduled on Saturday or Sunday. I thought wrong. Can anyone direct me on how to do this?
1
1659
by: coolguyraj | last post by:
I have a PHP and javascript code to take value from two text boxes and calculate on triggering the "OnBlur" function and display in the third box. The code works fine with one line item,If i have more that one line item.i will be able too calculate the value only for the last line item added ,But if i change any of the values in the two boxes from which it takes values.The probablity will not be recalculated. Could anyone help me to fix...
2
12184
by: rajeevs | last post by:
Hi I been away for sometime. Pls help me with my new problem i need to do a leave calculation using a text box. I have a start date (date format) and number of days(number). The calculation i can do is lastdate=dateadd("d",-1,+) this gives the difference, but i need to minus the weekends from the total I tried using "w" instead of "d" but no use pls help me
4
2007
by: MLH | last post by:
I'm thinking of an integer field in which I could write values up to 1+2+4+8+16+32+64 and to use these values later. Each of the individual values would represent a weekday from Sunday to Saturday. So if I were to look at a record for a newspaper publication and see 9 in the field, I could interpret that as meaning the publication was released on Sundays (1) and Wednesdays (8). A value of 127 would indicate a daily paper publishing...
3
1507
by: ConfusedMay | last post by:
Could someone please help.... ? below are my code on how to create indate and outdate. If Not IsNull(rst2.Fields("Days_Required")) Then days = rst2.Fields("Days_Required") End If enddate = rst2.Fields("FinalDate") If days = 0 Then ...
0
9568
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
9404
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
9959
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8833
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7381
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
6651
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
5423
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3929
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
2806
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.