Results 1 to 5 of 5
  1. #1
    mlrucci is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2018
    Posts
    202

    Unhappy query calculations based on page number

    Good afternoon, I am attempting to create a query that will compute the total $ amount based on the number of pages that were printed. I am including pictures to simplify the understanding of what I am attempting to accomplish as my tables are more complex and will just add to the confusion. I think I am using the wrong expression in the wrong place or am missing something else?

    My table consists of price, Tier Low and Tier High.




    First query calculates the number of documents grouped by the number of pages printed.




    Second query pricing matrix based on the number of pages printed and product type.




    So far so good. My problem, When put them together and try and calculate based on the number of pages printed in the product type, it only choses the first row of pricing and is not accurate.




    I have used the between expression:





    Not sure what I am missing. Any insight would be useful. Thank you
    Last edited by mlrucci; 03-21-2021 at 05:31 PM. Reason: pictures were not imported

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,524
    pages have no meaning to a query.
    the report page CAN give you a sum / page.

  3. #3
    mlrucci is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2018
    Posts
    202
    See original post. Pictures didn't import


  4. #4
    mlrucci is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2018
    Posts
    202
    I think I was not clear. My apologies, I am not looking for the sum of the pages. I need the price to be based on the number of pages printed for that particular document. For example. If document 1 has 10 pages printed, the price for that document would be $3.25. If document 2 has 42 pages, the price for that documents would be $6.00. then need to multiply the total once the matrix is correct. The multiplication isn't the issues. It's choosing the correct price for that document.

  5. #5
    Join Date
    Jun 2010
    Location
    Belgium
    Posts
    1,043
    I'm afraid we will need at least a simplified example of your data structure to be able to advise on a query syntax.

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

Similar Threads

  1. Replies: 1
    Last Post: 10-12-2020, 04:19 AM
  2. Report based calculations
    By Rangerguy2000 in forum Reports
    Replies: 24
    Last Post: 12-13-2018, 02:30 PM
  3. Access report change label value based on page number
    By system243trd in forum Programming
    Replies: 1
    Last Post: 05-24-2016, 08:54 AM
  4. Replies: 5
    Last Post: 03-27-2013, 05:10 PM
  5. Replies: 1
    Last Post: 03-12-2009, 09:55 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