Results 1 to 4 of 4
  1. #1
    chris.williams is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2011
    Posts
    94

    Summary Query in Report

    Hello all got an interesting one here:

    I have report which is a summary report of many different queries. What I need is a checklist of sorts (true/false results) based on counts of the detail sub-queries.

    eg: Master Ticket record has no computers
    Facility Ticket records have computers

    I need a true/false flag on the master report that returns whether or not a computer was of a particular configuration (such as Windows, Linux, etc). So basically, if on the detail query something like this: iif(count(OS="Windows")>0,True,False). The problem I am running into is that the true/false field is not linked to a sub-query to get any numbers as it's part of the summary report, not a detail sub-query.



    Thanks...

  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,929
    Maybe do the counts in the subreport, try: Count(IIf([OS]="Windows",[OS],Null))

    Then a textbox on main report can reference the subreport textbox to return a True or False if the value is >0.
    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
    chris.williams is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2011
    Posts
    94
    Thanks for the reply. I guess that's what I need help with. How would one go about referring to a field in a sub report?

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Try:

    =subreportcontainername.Forms.textboxname

    I always name the subform/subreport container control different from the object it holds, like ctrDetails.
    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. Creat a Summary Report
    By Karenclaire in forum Reports
    Replies: 3
    Last Post: 04-23-2013, 06:27 AM
  2. Tenure Summary Report Question
    By srmezick in forum Reports
    Replies: 3
    Last Post: 10-31-2011, 01:40 PM
  3. Order Summary Report
    By ryonker in forum Reports
    Replies: 1
    Last Post: 01-10-2011, 09:15 PM
  4. Replies: 2
    Last Post: 08-25-2010, 01:42 PM
  5. Summary Report Help Please?
    By solitaire in forum Reports
    Replies: 3
    Last Post: 03-03-2006, 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