Results 1 to 6 of 6
  1. #1
    Erictsang is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Jul 2017
    Posts
    154

    How to make a report to show only value greater than O

    Dear all



    I have a sales report, recorded sales of the month for a customer

    I have a queries to filtered the date range

    But each customer may have different purchase items.
    How can i list only the field that has record?

    Client | Item 1 | Item 2 | Item 3

    Eric | 1 | 0 | 3
    Bertha | 0 | 2 |1
    Paul | 2 |0 |0

    can anyone help me out, as in actual list there are around 48 items

    Eric

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,523
    make the query do it.
    If you only want people with fields > 0, set the criteria in the query.

  3. #3
    Erictsang is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Jul 2017
    Posts
    154
    i should place on the Criteria or Or

    As when i place the 1st one on Criteria and the rest on Or

    it won't work

  4. #4
    aytee111 is offline Competent At Times
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    If that is the structure of the table then you are going to have problems. There should be two tables, one for Clients and one for Items.

  5. #5
    Erictsang is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Jul 2017
    Posts
    154
    Aytee

    Please find my file
    Attached Files Attached Files

  6. #6
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,898
    You say the db is for monthly sales - yet there is no monetary sales data, only what looks like conference attendance.

    The query is doing what it is designed to - just not what you think it should. You really need to redesign data structure. If each record can be only one or the other country and can have only one Pass field with data, then there should be only 1 country field and 1 pass field. Country field would have A or B value. Pass field would have maybe date of graduation?
    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.

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

Similar Threads

  1. Replies: 3
    Last Post: 07-28-2017, 04:03 PM
  2. Replies: 1
    Last Post: 08-29-2016, 08:16 AM
  3. Replies: 17
    Last Post: 02-13-2015, 06:24 AM
  4. Replies: 2
    Last Post: 07-01-2014, 10:48 AM
  5. Replies: 5
    Last Post: 06-13-2011, 01:30 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