Results 1 to 4 of 4
  1. #1
    lccrews is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Aug 2017
    Location
    Los Angeles
    Posts
    194

    How do I query and add percentages?

    I'd like to have a form that has a subquery on it. I have a table on it like the one below. I'd like to search for an item number and show only records with that item # associated, as well as provide a percentage column for the qty per field. How would I go about doing this?

    Search: A481


    Item # Ingredient Qty Per Percentage
    A481 226547 35 ??
    A481 244513 12 ??
    A481 226588 60 ??

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    Cross post https://stackoverflow.com/questions/...e-from-a-query

    Textbox in form or report footer with expression: =Sum([fieldname])

    Textbox in detail section with expression: =Round([fieldname]/footer textbox name * 100,0)
    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.

  3. #3
    lccrews is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Aug 2017
    Location
    Los Angeles
    Posts
    194
    I've built a query for this. I got the column to total itself. How do I add a column that column to provide percentages? =Forms![Tbl_Formulas]![Qty Per]/"100" isn't working.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    Answered in other forum thread.
    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. Calculate percentages within a query
    By AccessNovice16 in forum Queries
    Replies: 2
    Last Post: 09-28-2016, 12:21 PM
  2. How to create query to show percentages.
    By Littlewood in forum Access
    Replies: 2
    Last Post: 06-23-2015, 07:12 AM
  3. Crosstab Query with Percentages of Total
    By McArthurGDM in forum Queries
    Replies: 4
    Last Post: 05-07-2015, 02:48 PM
  4. query that generates percentages
    By jppevy in forum Access
    Replies: 3
    Last Post: 07-30-2013, 10:44 PM
  5. Percentages Query
    By mabrown81 in forum Queries
    Replies: 12
    Last Post: 11-01-2012, 12:50 PM

Tags for this Thread

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