Results 1 to 4 of 4
  1. #1
    Starmo is offline Advanced Beginner
    Windows 10 Access 2010 64bit
    Join Date
    Jun 2018
    Posts
    43

    Filter data in the report

    Hello peoples!
    I have one problem that I do not know how to solve it.


    Here's what it's about. I have one query in which one column serves to select rows (yes / no). Based on that query I made a report.
    Interested in how to select data in the report. (Yes / no).
    I would like to make three buttons. On one i would put "show active yes", on the second "show inactive no" and on the third "show all".
    Or maybe on a combo box put these three options?

  2. #2
    Minty is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2017
    Location
    UK - Wiltshire
    Posts
    3,003
    Generally you would do the filtering in the query, then base the report from that.
    Reports aren't really designed to be "active", they format their data based on a record source, then present it.

    Requerying the report would require the underlying query or the filter applied on opening the report to be reset.
    DLookup Syntax and others http://access.mvps.org/access/general/gen0018.htm
    Please use the star below the post to say thanks if we have helped !
    ↓↓ It's down here ↓↓

  3. #3
    Starmo is offline Advanced Beginner
    Windows 10 Access 2010 64bit
    Join Date
    Jun 2018
    Posts
    43
    Quote Originally Posted by Minty View Post
    Generally you would do the filtering in the query, then base the report from that.
    Reports aren't really designed to be "active", they format their data based on a record source, then present it.

    Requerying the report would require the underlying query or the filter applied on opening the report to be reset.
    Yes, I understand you. As I wrote, I have a query through which I can filter it. Each time I want to see it in a report, I must first go to the query and set it up, and then open the report again.
    I thought if it could be somehow simplified.
    How would you do it?

  4. #4
    Minty is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2017
    Location
    UK - Wiltshire
    Posts
    3,003
    You can use a form to pass a parameter to the query, so if your form was called frmReports and your criteria was a yes/no check box called chkActive your would use

    Code:
    [Forms]![frmReports]![chkActive]  Or [Forms]![frmReports]![chkActive] Is Null
    in the criteria section of the query builder to make it look for that value on your form. This format allows a null value to return all the results.
    DLookup Syntax and others http://access.mvps.org/access/general/gen0018.htm
    Please use the star below the post to say thanks if we have helped !
    ↓↓ It's down here ↓↓

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

Similar Threads

  1. Replies: 4
    Last Post: 05-19-2017, 06:20 AM
  2. Filter Report Data
    By Forbes in forum Reports
    Replies: 9
    Last Post: 03-14-2017, 11:51 AM
  3. Replies: 3
    Last Post: 10-30-2014, 06:24 AM
  4. Replies: 4
    Last Post: 04-30-2014, 09:40 PM
  5. Replies: 4
    Last Post: 07-14-2011, 09:49 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