Results 1 to 3 of 3
  1. #1
    MJays is offline Novice
    Windows 10 Office 365
    Join Date
    Mar 2020
    Posts
    6

    How to put two records from the one field on the one report in separate columns

    Hi all,

    Access ignorants are back asking another stupid question.

    We have an Excel spreadsheet that we receive from an external source every week and have to pull certain data. To save us having to pull the same data every week, we thought it may be a good idea to run the data through an Access database.

    The fields we need to work with are:
    ID (Access Primary Key)
    Client ID
    Client


    Worker
    Team
    Allocated

    We want to run a report that groups the Team name, which then lists the worker names who are in each team. The goal is to show a record count against every worker in two columns, one for allocated clients, and one for non allocated clients.

    Now... our problem is that the query field that notes whether the client is allocated or not is a yes or no. We can't work out how to show on the report two columns. One for the count of "yes" and the other for the count of "no". We tried to use a sub-report, by using an allocated query ("no" option) and the sub-report from an un-allocated query ("yes" option), but we couldn't work out how the names who only have "yes" get into the correct team groupings.

    We are getting ourselves very confused.

  2. #2
    Join Date
    May 2018
    Location
    Living in Scotland UK
    Posts
    1,557
    Hi

    Can you upload a zipped copy of the Database?

  3. #3
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,518
    One way, a textbox with:

    =Sum(IIf(Allocated = True, 1, 0))

    and another with the reverse.
    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. Splitting data into separate columns
    By dth122 in forum Reports
    Replies: 8
    Last Post: 02-14-2020, 02:40 AM
  2. Replies: 4
    Last Post: 10-17-2015, 09:40 PM
  3. Replies: 1
    Last Post: 04-29-2014, 12:20 AM
  4. Separate Names into Columns
    By bulbul4u in forum Access
    Replies: 2
    Last Post: 04-01-2011, 12:01 PM
  5. Replies: 61
    Last Post: 03-14-2011, 03:29 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