Results 1 to 8 of 8
  1. #1
    WAVP375 is offline Competent Performer
    Windows 8 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    Dayton Ohio
    Posts
    171

    Query not producing the desired data

    Attached is a query and the results as well as the desired results. I need some direction to obtain those desired results. If they are not attainable in the query, how can I use the produced data to generate a report with only the data desired? Any help will be appreciated.



    Thanks
    Attached Thumbnails Attached Thumbnails snip_20160113102543.png   snip_20160113102301.png   snip_20160113110858.png  

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    I can't tell from the Relationship picture *how* you have those tables Joined. Maybe if you show us the SQL for the query we'll have a better understanding.

  3. #3
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,646
    Your desired output does not show the combination of 101 with 1023 as reflected in the actual data. Why would you not want to show this data combination?
    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.

  4. #4
    WAVP375 is offline Competent Performer
    Windows 8 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    Dayton Ohio
    Posts
    171
    Course 101 is required for both 1016 and 1023 jobs. The student takes the course only once therefore it wants to be displayed only once.

  5. #5
    WAVP375 is offline Competent Performer
    Windows 8 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    Dayton Ohio
    Posts
    171
    SQL attached

    Thanks
    Attached Thumbnails Attached Thumbnails snip_20160114092701.png  

  6. #6
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,646
    You will have use report Sorting & Grouping features.
    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.

  7. #7
    WAVP375 is offline Competent Performer
    Windows 8 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    Dayton Ohio
    Posts
    171
    I can group on Job and I can group on Course but not both at the same time.

  8. #8
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,646
    Sorry, that does not make sense to me.

    There can be multiple levels in grouping.

    What you want might require subreports.
    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. LIKE query does not give desired results
    By MarksinMO in forum Queries
    Replies: 3
    Last Post: 09-03-2015, 06:58 AM
  2. Replies: 11
    Last Post: 08-19-2015, 01:01 PM
  3. Access Query not returning desired records
    By NaomiC in forum Queries
    Replies: 2
    Last Post: 01-10-2015, 01:18 PM
  4. Replies: 5
    Last Post: 12-21-2014, 03:47 AM
  5. Replies: 15
    Last Post: 02-16-2013, 08:10 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