If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Access > Calculate Future Date

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-27-11, 15:03
bdstafford13 bdstafford13 is offline
Registered User
 
Join Date: Jul 2011
Posts: 1
Calculate Future Date

I need to calculate a future date looking at only weekdays and excluding holidays in an Access 03 query

Tables:
Leadtimes in workdays - contains # of work days that need to be added to current date to get future date

Holidays - current year holidays

I'm not very knowledgeable in VBA and I've found several posts and gotten close, but nothing is working. Any help would be greatful!
Reply With Quote
  #2 (permalink)  
Old 07-28-11, 11:09
Sinndho Sinndho is offline
Registered User
 
Join Date: Mar 2009
Posts: 3,446
You should try to get a calendar of the holidays specific to your country (official holidays vary among countries) and enter the significant part of it into a table. Several solutions are available on the net.

From there you can compute the number of holidays for a given period and substact it (plus the weekends) from the total number of days for the same period. This would give you the number of workdays for the period.
__________________
Have a nice day!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On