473,503 Members | 2,126 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Access: calculate field on FORM to exclude weekends & holidays

3 New Member
I have searched, but everything I'm finding is not really answering my question.

I have a field on a form that is calculated when a chk box is clicked. It is calculating a date to follow up that is 35 days in the future. I need this date to exclude weekends and my company's holidays. I have a separate Holidays table ready. I am not able to figure this one out, can anyone help? I need to get this working on a few different check boxes, actually, which all affect the follow up date.

This is the existing code which works fine, just doesn't exclude weekends or holidays.

Private Sub Checkdaysuntilfollowup_Click()
If CheckDaysUntilFollowup.Value = True Then
[F/U Date].Value = date + [Days Until Follow Up]
ElseIf CheckDaysUntilFollowup.Value = False Then
[F/U Date] = Null
End If
End Sub
Feb 8 '10 #1
1 2881
nico5038
3,080 Recognized Expert Specialist
Check out: http://www.mvps.org/access/datetime/date0006.htm
Many fine other samples too :-)

Nic;o)
Feb 9 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
4724
by: JP SIngh | last post by:
Hi All I need to calculate the number of working days between the two dates entered on an ASP page. I am not that great a coder in ASP and was wondering if someone can help. Basically the...
1
282
by: Damien | last post by:
Hi I have built a database using Access 2000. For one of the reports I am trying to create I need to calculate working days. I have written code in VB which takes a start date and an end date...
4
2531
by: JMCN | last post by:
object invalid or no longer set - confusion of the recordset in access 2003. i am currently converting from access 97 to access 2003. majority of the codes converted over perfectly fine, though...
2
2178
by: Jannick | last post by:
Help..please! I'm a rookie in terms of VB, but I'm desperately trying to make Access count the number of days between two dates and then subtract the weekends. Can anyone tell me what is wrong...
2
3127
by: MLH | last post by:
With a table of holidays and A97's date fn's - how best to count weekends and holidays between two dates? My holiday table has 4 fields. I will be adding records to it each year as info becomes...
0
1170
by: psuaudi | last post by:
I have a database that involves moving product from one status to the next. When the status is changed, it saves the date of the change, and from where the product was moved. Ex. of one product...
3
1395
by: eskelies | last post by:
I have a rolling cumulative income amount for each day. Right now my query would need me to run it everyday (weekday, weekend or holiday) for it to work. My data looks something like this: ...
2
8701
by: rahulae | last post by:
help me with this I'm able to calculate total working days excluding weekends but how to exclude holidays,is there any other way apart from storing all the holidays in some table and not selecting...
8
25458
by: trixxnixon | last post by:
I know this topic is a veritable dead horse, but I have to ask, because I am unable to find something that is close to my scenario that I can completely understand. I have a start date field ...
5
24524
FishVal
by: FishVal | last post by:
IMHO, the following is not a how-to-do instruction to solve a particular problem but more a concept-proof stuff demonstrating possibilities of SQL. So, let us say the problem is to calculate...
0
7205
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,...
0
7287
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,...
0
7353
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...
1
7011
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...
0
7468
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...
1
5023
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...
0
4689
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...
0
3180
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3170
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.