Results 1 to 3 of 3
  1. #1
    hinchi1 is offline Competent Performer
    Windows 10 Access 2013 32bit
    Join Date
    Sep 2017
    Posts
    181

    Desk Count

    I have a database which has a number of functions but i have been asked to add a function to show how many desks are in each room and more particularly which desks are unoccupied. I have a spreadsheet showing me the number of desks per room but i am unsure how to display the unoccupied desk count in a form. i would imagine i need to add a field to my desk table(say a checkbox to indicate if allocated or not), but if i use a checkbox i am unsure of the code to display on a form this information. Any help greatly appreciated

  2. #2
    Gicu's Avatar
    Gicu is offline VIP
    Windows 8 Access 2013
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,115
    In your table how do you identify them? By location, by number, etc.? In any case assuming you have something like Room, DeskName,Allocated (yes/No) in your table you would build a new query:

    "SELECT ROOM, IIF([Allocated]=True,[DeskName],Null) AS DESK_ALLOCATED,IIF([Allocated]=False,[DeskName],Null) AS DESK_NOT_ALLOCATED FROM tblRoomDesk;"

    Cheers,
    Vlad

  3. #3
    hinchi1 is offline Competent Performer
    Windows 10 Access 2013 32bit
    Join Date
    Sep 2017
    Posts
    181
    Quote Originally Posted by Gicu View Post
    In your table how do you identify them? By location, by number, etc.? In any case assuming you have something like Room, DeskName,Allocated (yes/No) in your table you would build a new query:

    "SELECT ROOM, IIF([Allocated]=True,[DeskName],Null) AS DESK_ALLOCATED,IIF([Allocated]=False,[DeskName],Null) AS DESK_NOT_ALLOCATED FROM tblRoomDesk;"

    Cheers,
    Vlad
    Thanks Vlad, for now I have decided to not implement this but will do in the future.

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

Similar Threads

  1. Replies: 2
    Last Post: 06-01-2016, 08:03 AM
  2. Desk top to mobil app
    By BEI77 in forum Access
    Replies: 2
    Last Post: 03-23-2016, 04:37 PM
  3. Replies: 4
    Last Post: 12-13-2015, 06:46 PM
  4. Replies: 4
    Last Post: 01-05-2014, 02:09 PM
  5. COUNT Group Count Records COUNT FUNCTION
    By PMCOFFEY in forum Access
    Replies: 9
    Last Post: 11-09-2012, 09:40 PM

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