Results 1 to 7 of 7
  1. #1
    Join Date
    Apr 2022
    Posts
    3

    Remove zero filed from report

    Click image for larger version. 
<br /><script async src=
    Name: Access.jpg  Views: 11  Size: 13.9 KB  ID: 47608" class="thumbnail" style="float:CONFIG" />
    I've created a DB which is running fine, much to my newbie surprise, but I'm having a problem with the report.

    As in the example above, if a field is a zero value then I don't want it to be displayed and everything below to move up by one. There may be occasions where 2 or more field are zero also.

    I think I've ran out of Google search terms to find a solution to this problem and I'm hoping some of your wonderful people here have a simpletons fix for me as I'm learning as I go.

    Thanks in advance.



  2. #2
    Join Date
    May 2018
    Location
    Living in Scotland UK
    Posts
    1,566
    Hi

    I am assuming that the Report is based on a query?

    In the criteria row for the Numeric Value field use <>0
    You can PM me if you need further help.
    Good Reading https://docs.microsoft.com/en-gb/off...on-description

  3. #3
    Join Date
    Apr 2022
    Posts
    3
    Thanks for the reply and Yes it is based on a query.

    Unfortunately, when I do this, it reverts to a record where the field is greater than 0 and bypasses the visible record altogether.

  4. #4
    Join Date
    May 2018
    Location
    Living in Scotland UK
    Posts
    1,566
    Hi
    Can you upload a copy of the database?
    You can PM me if you need further help.
    Good Reading https://docs.microsoft.com/en-gb/off...on-description

  5. #5
    Join Date
    Apr 2022
    Posts
    3
    Unfortunately no, it has too much sensitive info on it. I know it would be the best thing to do but I'm afraid that's not an option.

    I created it to just hold clients info but then thought I'd be clever and push it to the next level, so I'm not fussed if I can't sort this as it was never part the original plan, just frustrating that this one little thing is preventing me from moving it forward further than expected. I can get the desired result in Excel and probably word, I just thought it would make life easier by using just the one piece of software.

  6. #6
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,803
    Unfortunately, when I do this, it reverts to a record where the field is greater than 0 and bypasses the visible record altogether.
    I don't understand that. Seems like that's what you wanted to happen. What's "the visible record"? When there's zeros, they're all visible are they not?

    A posting option is to mock up some data in Excel, center the fields and post it here as a sample. You'll get a pretty decent table and we won't have to make up data. Second table made same as the first but showing the desired outcome.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  7. #7
    Gicu's Avatar
    Gicu is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,115
    I have a feeling that your table is not properly designed. Can you show us the table with the fields you show us in your original post? If Income, Capital Allowance, Motor Vehicle are individual fields in the table then you have a problem. You need to read about database normalization, but basically you need two fields (ExpenditureType and ExpenditureAmount) so you split your existent record in multiple records. Then reporting would be easy as you just group by customer (id) and probably some date or other field(s), sort your expenditures and eliminate the zero ones in the criteria.

    Cheers,
    Vlad Cucinschi
    MS Access Developer
    http://forestbyte.com/

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

Similar Threads

  1. Replies: 7
    Last Post: 04-02-2021, 11:37 AM
  2. Replies: 5
    Last Post: 11-16-2019, 02:05 AM
  3. Replies: 1
    Last Post: 10-08-2019, 07:40 AM
  4. Remove report pararmeters
    By acrowe97 in forum Reports
    Replies: 2
    Last Post: 10-12-2018, 10:15 AM
  5. Using name from filed as a report file name
    By XP_2600 in forum Reports
    Replies: 2
    Last Post: 02-27-2017, 04:54 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