Results 1 to 3 of 3
  1. #1
    mountainwombat is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jun 2011
    Posts
    2

    date selection update query

    I have inherited an access database used to book training rooms. The the booking can be made for any day and the duration of the booking can be up to 13 days.



    the booking table has the following fields:

    roomno,employeeid,startdate,enddate,numberemployee s,numbernonemployees


    The reporting requirement is to have a weekly report showing the bookings for this week, ordered by room. This is simple enough


    I use the following to select the records with bookings for the week

    [startdate]=Between [reportdate] And [reportdate]+6 or [enddate]=Between [reportdate] And [reportdate]+6

    This gives me the records I want for the report, one per each booking. But they also want a check box for each day of the week ticked if the room is booked for that day.

    the table has boolean fields for each day:

    roomno,employeeid,startdate,enddate,numberemployee s,numbernonemployees,sun, mon, tues, wed, thurs, fri, sat

    I want to update the records to set the day field to true for the days of the week for this weeks report.

    The problem is that a booking may have a startdate in one week and the enddate in the next, so I need to dynamically update the record to have the booleans ticked only for the days in this reporting week.

    the reports are for a single week only, I need to show which rooms are booked for the days of one week.


    The previous persons solution was to add a reportdate field to each record, the user had to enter the date of the saturday of that week. if a room was to be booked over a weekend the user had to enter two records, one for each week, and to click the booleans for each day that the room is being used in each record, and they have to reenter all the other details on each record. you can imagine how happy the users are to do two records for a single booking

    Any help would be greatly appreciated

  2. #2
    alansidman's Avatar
    alansidman is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,529
    Solution provided here

  3. #3
    mountainwombat is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jun 2011
    Posts
    2
    not meaning to be thick, how do I close the thread as solved?

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

Similar Threads

  1. Replies: 7
    Last Post: 05-31-2011, 11:51 AM
  2. Inter-Query Selection
    By mschmehl in forum Queries
    Replies: 1
    Last Post: 04-13-2011, 05:00 PM
  3. Update table based on List Box selection
    By tpcervelo in forum Forms
    Replies: 0
    Last Post: 11-04-2010, 01:32 PM
  4. Query from a Combo Box Selection?
    By bkvisler in forum Queries
    Replies: 3
    Last Post: 09-04-2010, 06:11 PM
  5. Replies: 0
    Last Post: 04-17-2008, 09:24 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