Results 1 to 5 of 5
  1. #1
    abodi is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2011
    Posts
    31

    displaying allowances available per day over a date range.

    First let me say, this community has been very helpful anytime i've had a query and i'm very thankful.

    Now usually I have a good idea whether something can be done, even if I don't know how. but i'm not sure if this is possible.
    If it's complex i'm ok with that, any pointers you can provide would be amazing. if it's impossible, then I certainly want to hear that so i'm not wasting time and if impossible perhaps alternatives coudl be suggested.

    Background:
    I'm working on a leave database. There is a limit to the amount of people that can be on leave at any one time. That amount of leave available works on a percentage that changes weekly. It is captured in the follow table.
    Click image for larger version. 

Name:	leave.PNG 
Views:	15 
Size:	9.1 KB 
ID:	17813
    That percentage is applied to the number of staff working at the time. This figure also flucuates but not nearly as often and is one field that would be updated manually when required. Lets call that table tblSiteNumbers and the field NumberStaff.

    The problem:

    In order for people to easily see if leave is available we are looking at a query/report or a cluster of queries/reports that achieve an output something like this.

    Click image for larger version. 

Name:	outcome.PNG 
Views:	15 
Size:	10.8 KB 
ID:	17814

    So then it needs to display daily, the amount of leave available based on a date range entered by the user. Individual dates are not saved, only the week commencing dates.

    I've perhaps not provided enough information and if that is that case please let me know.

    Any assistance/guidance would be greatly appreciated.
    Abodi.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,954
    Won't be easy - very complex. I expect will need lots of VBA code and maybe a temp table. Review this thread https://www.accessforums.net/databas...ses-18459.html for examples of report that displays daily data for a period when the records only give a start and/or end date. Another example database in https://www.accessforums.net/forms/g...tml#post239648
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    abodi is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2011
    Posts
    31
    Thanks June7, i'll take a look at both those links.

  4. #4
    abodi is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2011
    Posts
    31
    Hi June7 and others,

    Would it be any/much easier if the LeaveAvailability table was on a daily basis rather than weekly?

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,954
    Probably but the calculations still seem complicated.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Replies: 12
    Last Post: 01-23-2014, 03:24 PM
  2. Replies: 3
    Last Post: 09-11-2013, 09:49 AM
  3. Replies: 3
    Last Post: 07-18-2012, 10:13 PM
  4. Date Range Report with Multiple Date Fields
    By StevenCV in forum Reports
    Replies: 13
    Last Post: 02-29-2012, 08:29 AM
  5. Query to find telephone allowances
    By gofbang in forum Queries
    Replies: 0
    Last Post: 12-19-2010, 02:02 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