PC Review


Reply
Thread Tools Rate Thread

Access Ver 2.0 Adding days to a date to give target date excluding weekends?

 
 
michael.nilsen@sgs.com
Guest
Posts: n/a
 
      16th Nov 2006
Hi Everyone,

Not sure if i'm posting in the right spot so sorry if its not, please
direct me to the correct location

I have three fields in a form, [quote accepted], [days to results] and
[target date]. I need to calculate the target date by adding the [quote
accepted] and [days to results] together but i want to exclude the
weekends as [days to results] is only working days.

Example

Quote accepted date: 16/11/2006

Days to result: 20

Target Date: 14/12/2006

Also there can be time where the information will be missing so
therefore it will have to handle null values ect

I have no preference over code or macro, which ever is better for this
application.

 
Reply With Quote
 
 
 
 
Douglas J. Steele
Guest
Posts: n/a
 
      19th Nov 2006
Recognizing that there will be 2 weekend days for every 5 working days, try
adding 28 days to the accepted date to get the target date.

For more sophistication, take a look at
http://www.mvps.org/access/datetime/date0012.htm at "The Access Web". (If
you are actually using Access 2.0, as your subject line indicates, you'll
have to change all references to the Date data type to Variant, as I seem to
recall that Access 2.0 didn't have a Date data type)

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)


<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi Everyone,
>
> Not sure if i'm posting in the right spot so sorry if its not, please
> direct me to the correct location
>
> I have three fields in a form, [quote accepted], [days to results] and
> [target date]. I need to calculate the target date by adding the [quote
> accepted] and [days to results] together but i want to exclude the
> weekends as [days to results] is only working days.
>
> Example
>
> Quote accepted date: 16/11/2006
>
> Days to result: 20
>
> Target Date: 14/12/2006
>
> Also there can be time where the information will be missing so
> therefore it will have to handle null values ect
>
> I have no preference over code or macro, which ever is better for this
> application.
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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
Date list excluding weekends Connie Martin Microsoft Excel Misc 9 5th Jan 2010 02:27 AM
Access Ver 2.0 Adding days to a date to give target date excluding weekends? michael.nilsen@sgs.com Microsoft Access Macros 1 30th Nov 2006 02:20 AM
Access Ver 2.0 Adding days to a date to give target date excluding weekends? Michael Microsoft Access Forms 2 19th Nov 2006 10:52 PM
Formula for adding days to a date excluding weekends and holidays? Jake via OfficeKB.com Microsoft Excel Misc 2 25th Jan 2006 08:03 PM
adding days to a date, bypass weekends =?Utf-8?B?ZGhucml2ZXJzaWRl?= Microsoft ASP .NET 4 9th Dec 2004 03:34 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:42 PM.