Results 1 to 2 of 2
  1. #1
    Jamesy_007 is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Mar 2020
    Location
    Caribbean
    Posts
    109

    A report that filters different results

    Hey everyone,



    Can I get some guidance.

    I have this form with two buttons . one button Receipts [btnReceipts] filters a report on the individuals Total. If someone has no data to retrieve the report will not open by vba code. I have another button on the same form Yearly Report [btnYearly]. This button opens a report of the Total sum for everyone according to the year by criteria ... good. I can do this by creating two(2) reports similar but changing the criteria in the row source property sheet OK! not bad... But what would be really Kool is if this can be done, say generated from one Report where each button is clicked the Report filters in Total by individual and by year...

    I know this is vba programming I hope this makes sense... am thinking I saw something like this in the Northwind db

  2. #2
    Micron is offline Very Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,423
    research the On No Data event. I think that will do what you want - even allow you to present custom message when there are no records for the report, if you want to.

    https://learn.microsoft.com/en-us/of....report.nodata
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

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

Similar Threads

  1. Replies: 3
    Last Post: 08-13-2020, 04:24 PM
  2. Replies: 9
    Last Post: 05-04-2018, 05:56 AM
  3. Replies: 6
    Last Post: 05-18-2017, 08:33 AM
  4. Replies: 7
    Last Post: 11-01-2013, 09:14 AM
  5. Report based on multiple filters
    By Johnny12 in forum Reports
    Replies: 1
    Last Post: 12-20-2012, 02:57 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