Results 1 to 5 of 5
  1. #1
    baarrnnee is offline Novice
    Windows 10 Access 2016
    Join Date
    Jan 2018
    Posts
    3

    Print a report that contains no data

    I have a database that I use to record weekly donations from church members. When I go to print Tax Receipts, the report gathers the information from the database and prints the page as requested. The problem is if there were no donations, then the report does not print and is omitted. I would like to be able to print a zero donation report for those who did not donate in during the year.

    Thank you,
    Karl

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,523
    you can create Q1 that pulls your normal data,
    then Q2 that gives every account a zero.

    then make Q3 a UNION QUERY to combine both so everyone has a value:
    select * from Q1
    union
    select * from Q2

    then make Q4 to sum values in Q3 and everyone has a value. Bind this qry to the report.

    OR -------
    make Q1 (the only query needed) an outer join to get all values , even NULLs if they had no data.
    then you get all customers but the values will be blank if they had no data.

  3. #3
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,784
    Why not just set one or more donation fields to default to zero (assuming those fields are number type fields)? It won't fix your current data but will prevent the issue from then on. To 'fix' the current records, you'd run an update query to alter all Null donation records to zeros. Good data is always better than band aid fixes IMO.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,896
    Micron, so create a record every week for 0 donation for members that do not make donation?

    Build a query that summarizes donations then join that query to members table. Use that query as source for report.
    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
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,784
    Micron, so create a record every week for 0 donation for members that do not make donation?
    Whoops, no, certainly not. I guess I focused on the year part:
    I would like to be able to print a zero donation report for those who did not donate in during the year.
    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: 04-28-2017, 09:51 AM
  2. Print report with form data?! Help Please.
    By Wakin in forum Reports
    Replies: 4
    Last Post: 01-27-2017, 09:05 AM
  3. Replies: 5
    Last Post: 08-06-2015, 03:26 PM
  4. Replies: 1
    Last Post: 02-21-2015, 11:35 PM
  5. Print Data Range on Report
    By Dale S in forum Reports
    Replies: 5
    Last Post: 05-30-2012, 08:33 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