Results 1 to 2 of 2
  1. #1
    tidymonkey81 is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Mar 2014
    Posts
    2

    calculating days of a period overlapping another period of days

    Good day everybody, this is my first post as I'm new to Access.

    I am writing a booking system for a guest house business and in order for accurate pricing I need to be able to determine the rates for a booking period which may cover more than one rate-period. For instance, if a booking period starts in a low season and accrues 5 days before crossing into a high season and then accruing 3 days I need to bill for 5 low season-priced days and 3 high season-priced days. I have fields in the following tables

    tblBookings.StartDate
    tblBookings.EndDate


    tblSeasons.SeasonStart
    tblSeasons.SeasonEnd
    tblSeasons.SeasonType

    First, should I set this up differently?

    If not, how do I go about adding columns to my query that counts the number of peak, off peak and (if you look at the picture attached you'll understand why) carnival days in a single booking period?

    I started looking at the SWITCH function but it doesn't seem to do what I need it to do.

    Thanks!
    Click image for larger version. 

Name:	Untitled.jpg 
Views:	10 
Size:	168.9 KB 
ID:	15960
    Attached Thumbnails Attached Thumbnails Untitled.jpg  

  2. #2
    tidymonkey81 is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Mar 2014
    Posts
    2
    anyone with any hints?

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

Similar Threads

  1. The period og days between two dates
    By roar58 in forum Queries
    Replies: 5
    Last Post: 10-06-2013, 11:58 AM
  2. To find Month and Days in given date period
    By waqas in forum Programming
    Replies: 1
    Last Post: 02-12-2013, 02:50 PM
  3. Replies: 18
    Last Post: 02-06-2013, 12:43 PM
  4. Replies: 4
    Last Post: 01-25-2013, 05:20 AM
  5. Calculating days & Time
    By siapliw in forum Forms
    Replies: 5
    Last Post: 09-11-2012, 11:44 AM

Tags for this Thread

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