Results 1 to 4 of 4
  1. #1
    ecalvert47462 is offline Novice
    Windows XP Access 2007
    Join Date
    Dec 2011
    Posts
    17

    Building an Access 2010 Report to capture "yes" selections

    Hello All, I have a quick question. I will try to explain the best I can without sounding silly.



    I am working in Access 2010.

    I have a user form with multiple checkboxes on it, like around 30 or so. It's a review form that an end user can bring up the Job # and then select if the job had any deficiencies or not...if no then they just hit enter and go to the next job # and if it does then they check a box and then check the areas where there were deficiencies. This all gets stored in a table that records a yes or no in the value, under each field name that they specifically checked or didn't check next to the deficient area.

    And I have a query set up to look at if the job had issues then it brings me a list of all the jobs that had problems and leaves out the ones that do not.

    What I don't know how to do is to design a report that will just bring me the Job # and a list of the deficiencies with only a yes in the field value...is there a way to design it so it just puts in the deficiencies and ignores the ones with no values.

    thank you.

  2. #2
    CJ_London is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,430
    I would think the recordsource to your report will be something like

    select Job, deficiency from mytable where myfield=true

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Sounds like data structure is not normalized - the 30 or so checkboxes is an indication.

    Normalize the data structure.

    tblReviewers
    ReviewerID (primary key)
    LastName
    FirstName

    tblJobs
    JobNo (primary key)
    JobDescription
    JobDate

    tblDeficiencies
    DefID (primary key)
    DefDescription

    tblJobDeficiencies
    JobNumber (foreign key)
    DefNumber (foreign key)
    ReviewerNumber (foreign key)


    Otherwise, use a UNION query to rearrange the 30 or so yes/no fields into normalized structure and apply filter criteria that retrieves only the Yes records. Use this as the report RecordSource.
    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.

  4. #4
    orange's Avatar
    orange is online now Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    I think you really want a Form to capture your data.
    Tables are where data is stored. Forms are the means by which users interact with the data and the application.
    Reports are typically used to display results of manipulations and/or summaries of data.

    Do you have a data model representing your tables and relationships?

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

Similar Threads

  1. Replies: 4
    Last Post: 12-12-2014, 08:48 AM
  2. Replies: 7
    Last Post: 08-14-2013, 03:57 PM
  3. Export "Query or Report" to a "Delimited Text File"
    By hawzmolly in forum Import/Export Data
    Replies: 3
    Last Post: 08-31-2012, 08:00 AM
  4. Replies: 2
    Last Post: 11-04-2011, 02:45 AM
  5. Replies: 3
    Last Post: 03-07-2011, 08:37 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