Results 1 to 5 of 5
  1. #1
    Duncan Pucher is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Jun 2019
    Location
    Bellevue, WA
    Posts
    49

    I want to filter data in my main report but can't. I want to change layout of subreport.

    I created a subreport "ResidentCareReviewsmainfrm" but can't filter the data by inactive and active since the record source isn't the query but the table. The filter I want to filter the data by those records that are not "inactive" and payer is "Medicare". Also, I want to search for all active records but it errors out when I go to the record number to search for a specific resident (patient).



    Also, I want to change the layout to columnar but it won't allow me to change it even though I selected remove layout.

    I would appreciate any assistance with the subreport.
    Attached Files Attached Files

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    There is no report by that name - it is a form.

    Exactly which object is issue?

    Code can set Filter and FilterOn properties of a form even if RecordSource is a table.
    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
    Duncan Pucher is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Jun 2019
    Location
    Bellevue, WA
    Posts
    49
    Yes , it is a form not a report. I need to filter two fields- “activeinactive” to only if not checked and payer to “Medicare”. I couldn’t get it to filter.

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    Which form - ResidentCareReviewsmainfrm?

    Its RecordSource is a query, not a table so why would you say you can't apply filter?

    What does "couldn't get it to filter" mean - error message, wrong result, nothing happens - what did you try?

    Do you want user to have option to apply/remove this filter? If Not, and you want this filter to be static, include this criteria in RecordSource query.



    Last edited by June7; 06-19-2019 at 12:30 PM.
    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
    davegri's Avatar
    davegri is offline Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,407
    To have the form show only active residents, change the form recordsource to
    SELECT * FROM Residenttbl WHERE ActiveInactive = true;

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

Similar Threads

  1. Replies: 7
    Last Post: 04-16-2018, 07:43 PM
  2. Replies: 1
    Last Post: 04-15-2013, 10:02 AM
  3. Subreport with criteria from main report
    By Evilferret in forum Reports
    Replies: 1
    Last Post: 08-15-2012, 03:19 PM
  4. Replies: 1
    Last Post: 03-07-2012, 09:00 AM
  5. Change of report layout
    By funsofinnih in forum Reports
    Replies: 1
    Last Post: 01-24-2012, 07:18 PM

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