Results 1 to 2 of 2
  1. #1
    Alex Motilal is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Nov 2008
    Location
    Coimbatore, India
    Posts
    193

    Holidays falling between dates

    Hi everybody
    I am developing a database for a cotton trading company. When cotton bales are ready, it is intimated to the contracted buyer. On making payment the buyer lifts the bales. As per the contract the buyer shall lift the bales within 7 days of making payment. However intervening Saturdays, Sundays and National holidays are excluded.
    To exclude week ends I am using a module, which I got through this Forum, which works fine.
    For National Holidays I have designed a table with fields holidayID, holidayDate and holidayReason. The table is not linked to any other table.


    I do want the query to exclude the count of holidays which falls in between the 7 days.
    I want somebody to guide me how to accomplish this.
    With thanks in advance
    Alex

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,641
    It would help to see the module. Typically if it uses the method that loops through dates, you'd include code within the loop to test each date against the holiday table.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Mixed dates - show only complete dates?
    By weeblesue in forum Queries
    Replies: 3
    Last Post: 10-27-2010, 02:15 PM
  2. Dates
    By spqr in forum Queries
    Replies: 4
    Last Post: 09-28-2010, 02:33 PM
  3. Between dates using Iif
    By unique in forum Access
    Replies: 1
    Last Post: 01-04-2010, 07:17 AM
  4. Due dates
    By Mehbastan in forum Queries
    Replies: 5
    Last Post: 08-14-2009, 08:37 AM
  5. calculate holidays
    By barkarlo in forum Queries
    Replies: 0
    Last Post: 12-20-2006, 06:08 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums