Results 1 to 5 of 5
  1. #1
    MSnTN is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2017
    Posts
    3

    Newb here: Basic report

    Okay, I am trying to build a report that will pull info from a database table. The table is populated by a form with a specific PN (pulled from another table) and 28 additional fields (formatted as combo boxes with yes/no/na options)

    I want ant the report to be filtered by the PN and provide the percentage of each possible answer.

    Something like:

    PN: xxxxxxx

    question. Yes. No. N/A

    Question 1: 50%. 30%. 20%
    etc
    etc


    I think I will have to build a query first then base a report off of it.
    I just started working with access on Monday so I am very new to this! Please be kind!

  2. #2
    aytee111 is offline Competent At Times
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    You have the correct method - for reports, always get the query working first, then base the report off that query.

    To filter a report, have a textbox or combobox on a form and a button to print (preview) the report. This button will apply a filter when opening the report based on the value entered in the text/combobox. If this is too complicated, have the filter in the query instead: in the criteria line say =Forms!formname!fieldname

    Not sure about the percentage - is it an entered field, or calculated somewhere?

  3. #3
    MSnTN is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2017
    Posts
    3
    I have the filter in the query criteria line from the form combo box and date selection as well. The percentage I am looking for is the percent of "yes", "no", or"n/a" answers entered for each question. The form is an audit for that will be used to update the database. I want the report to show how the "PN" did on the audit.

  4. #4
    MSnTN is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2017
    Posts
    3
    I have the filter in the query criteria line from the form combo box and date selection as well. The percentage I am looking for is the percent of "yes", "no", or"n/a" answers entered for each question. The form is an audit for that will be used to update the database. I want the report to show how the "PN" did on the audit.

  5. #5
    aytee111 is offline Competent At Times
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    In the query for the report, add two extra fields:
    AnsYes: IIf(value="Yes",1,0)
    AnsNo: IIf(value="No",1,0)

    Then in a textbox in the group footer on the report (group by question). In the control source:
    =Sum(AnsYes) / Sum(AnsNo)
    or if you need to use the total number of Yes/No/NA use : Count(*)

    Not sure what the exact calculation is written out mathematically.
    Last edited by aytee111; 02-02-2017 at 01:06 PM. Reason: better solution

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

Similar Threads

  1. VERY basic report question
    By therockfrog in forum Reports
    Replies: 3
    Last Post: 03-22-2014, 12:38 PM
  2. Replies: 10
    Last Post: 01-21-2014, 11:09 AM
  3. basic report help
    By campanellisj in forum Reports
    Replies: 9
    Last Post: 04-22-2011, 01:04 PM
  4. Basic report programming question.
    By sepoto in forum Programming
    Replies: 1
    Last Post: 04-06-2011, 07:45 PM
  5. Basic help linking data to a report?
    By SportyDog in forum Reports
    Replies: 3
    Last Post: 11-30-2009, 02:26 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