Results 1 to 10 of 10
  1. #1
    JJPetersen1 is offline Novice
    Windows 8 Access 2016
    Join Date
    Jan 2020
    Posts
    9

    Reports - Save a report by Group

    Not sure how to intelligently ask this question. I'm a novice.

    I have a report, the data is grouped by Unit. What I want to do is save a report for each grouping (Unit) on the report.

    I could send the whole report to all Units but I don't want each unit to have the information from the other units.

    I could run a separate report for each unit; however, that's very time consuming for a report that's frequently run.

    I'm asking for a lot, I know. Any help would be appreciated.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,919
    Options:

    1. run report for each group with filter criteria for each group - this can be automated with VBA procedure

    2. run one report which is designed to start new page for each group and split up printed pages for distribution
    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
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,926
    Could also filter the query for the report?
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,919
    Apply filter to query or to report (I would do the latter) still basically option 1.
    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.

  5. #5
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,926
    Quote Originally Posted by June7 View Post
    Apply filter to query or to report (I would do the latter) still basically option 1.
    My thinking was with query only records satisfying the filter would be retrieved.
    With report, all records retrieved, then filtered for required?

    If large dataset, then first option might be quicker as O/P said running a report for each would be time consuming?

    I agree still mostly option 1.
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,919
    Does applying filter criteria with DoCmd.OpenReport retrieve all records?

    By 'save a report', do you mean make PDF?
    One example of option 1 https://stackoverflow.com/questions/...iple-pdf-files
    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
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,926
    Quote Originally Posted by June7 View Post
    Does applying filter criteria with DoCmd.OpenReport retrieve all records?

    By 'save a report', do you mean make PDF?
    One example of option 1 https://stackoverflow.com/questions/...iple-pdf-files
    I thought it worked the same as a form? where if the filter is removed when the form is open, then all the data is available.
    Just tried now with a report and it does not change?

    Talk about consistency.
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  8. #8
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,919
    I just tried and it did change.
    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.

  9. #9
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,926
    Quote Originally Posted by June7 View Post
    I just tried and it did change.
    Hmm, I opened a report with a filter in the docmd, then in the load, set it to empty and FilterOn to False, but left with same data.
    Refresh is disabled.
    How did you do it June7?
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  10. #10
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,919
    Oh, I tested with immediate window

    Reports!MyReport.Filter = ""
    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. Group reports
    By Jishnu Surendran in forum Reports
    Replies: 2
    Last Post: 03-07-2018, 04:55 PM
  2. Replies: 2
    Last Post: 07-15-2015, 08:35 PM
  3. Group reports on odd year
    By EricE in forum Reports
    Replies: 3
    Last Post: 12-06-2011, 09:45 AM
  4. Save As Dialog Box for Reports
    By eww in forum Programming
    Replies: 1
    Last Post: 12-01-2010, 03:12 PM
  5. Group & Reports (more than 4 Groups??)
    By JohnS in forum Reports
    Replies: 3
    Last Post: 10-01-2009, 07:11 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