Results 1 to 7 of 7
  1. #1
    Brian62 is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Aug 2009
    Posts
    147

    How to count multiple text boxes

    I have a report where I am trying to count all the text boxes which comprises of about 8o. I want to separate them by Yes, No and N/A. I tried a few different options and none have worked in Control Source.



    Example1: =Count(IIf([RDStudyAuditSectionA.Doc #12-5]+[RDStudyAuditSectionA.Email Corrospondence]+[RDStudyAuditSectionA.Doc #2]="Yes",0))

    Example2=Count(IIf([Doc #12-5]+[Email Corrospondence]+[Doc #2]="Yes",0))

    Example3=Count(IIf([Doc #12-5],[Email Corrospondence],[Doc #2]="Yes",0))

    The formula is set in the report footer. The information is coming from a query with 8 different tables linked to one query which the Report operates off of.

    I have tried it on the query side but I can't figure it out there as well.

    Thanks!

  2. #2
    weekend00 is offline I may not be right
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    1,295
    I am not sure what do you want by:
    [RDStudyAuditSectionA.Doc #12-5]+[RDStudyAuditSectionA.Email Corrospondence]+[RDStudyAuditSectionA.Doc #2]="Yes",

    but you can use DCOUNT to get what you need.

    this example counts records with [Doc #12-5]='YES' in table RDStudyAuditSectionA:
    =dcount("*", "RDStudyAuditSectionA", "[Doc #12-5]='YES'")

  3. #3
    Brian62 is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Aug 2009
    Posts
    147
    The thing with that is the text boxes are named differently. They are separate shown in rows in the report. This is an example what I had in an excel format.

    The yes, No, and NA are dropdowns from the form. I would need to count each of the different entries through the report or query.

    I really want this to show in percentages of the total fields if that is possible.

    I hope you can make sence of this. Thanks!

    A. (Initial/Annual Review) purple sectionYes/No/NA
    1. E-mail correspondence Yes
    2. Application for Continuing IRB Review and Re-approval / Document # 2 (Required if > 1 Year) No
    3. Continuation/Closure Checklist / Document # 12.5 (Required if > 1 Year) No
    4. Initial Research Review Form/Document # 25 (Required) N/A
    5. Response to Lapse / Document # 28.51 N/A
    6. Lapse Letter template / Document # 28.5 Yes
    7. Phoenix Research Proposal Submission Checklist/ Document # 30 (Required) No
    8. Notification of Protocol Approval / Document #30.5 (Required) Yes
    9. New Proposal Submission Checklist/ Document # 36 (Required) N/A

    Total Yes: 3 Total No: 3 Total N/A: 3
    Last edited by Brian62; 11-10-2010 at 02:09 PM. Reason: Did not save correctly

  4. #4
    weekend00 is offline I may not be right
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    1,295
    use Dcount, one dcount at a type, then get the total if needed.

  5. #5
    Brian62 is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Aug 2009
    Posts
    147
    I don't believe that is possible since there are about 80 text boxes which are all different that represent Yes, No or N/A. I have to be able to calculate each Yes, No and N/A Separately.

    Do you know another way or how to string them together.

    I would need three Dcounts for each of the three criterias.

  6. #6
    weekend00 is offline I may not be right
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    1,295
    I am not very clear if you want to count across rows or across columns or count across columns and rows.

    example
    Code:
    col1 col2 col3 col4 col5
    Y     N     n/a   Y    Y
    N     N     Y    n/a   n/a
    how do you want to count them?

  7. #7
    Brian62 is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Aug 2009
    Posts
    147
    I want to add all the column names in the report to come out with my totals. Here is part of the database so you can see what I am talking about in the report.

    I appreciate your help!!!

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

Similar Threads

  1. Replies: 15
    Last Post: 09-18-2010, 01:19 PM
  2. Multiple count query
    By aajay05 in forum Queries
    Replies: 2
    Last Post: 03-08-2010, 10:00 AM
  3. help with totals for count text boxes
    By gacapp in forum Reports
    Replies: 10
    Last Post: 07-22-2009, 11:26 AM
  4. using COUNT for multiple tables
    By kwalt in forum Queries
    Replies: 0
    Last Post: 02-17-2009, 03:06 PM
  5. joining text in text boxes
    By jjwilliams73 in forum Forms
    Replies: 1
    Last Post: 08-26-2008, 02: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