Results 1 to 7 of 7
  1. #1
    MBA80 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Posts
    13

    Checkbox Report

    I am totally new to using Access and have created a very basic table and form (one each). What I would like to do is generate two different reports based on the table information. The table only has five fields: TicketNumber, OccuranceDate, CompletitionDate, HoursToComplete, and a checkbox for Routine Maintenance (yes or no).

    I would like to generate one report that only includes records that have the checkbox checked, and the other report to only include records that do not have the checkbox checked.

    Any help would be appreciated.

  2. #2
    Robeen is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Mar 2011
    Location
    Tulsa, Oklahoma.
    Posts
    1,593
    One way to approach this would be to:
    1. Create one query that returns all the records with the check box checked - and another for records where the check box is NOT checked.
    2. Use Report Wizard and create one report based on each of the queries.
    Let us know if you have any questions!

  3. #3
    MBA80 is offline Novice
    Windows Vista Access 2007
    Join Date
    May 2012
    Posts
    13
    I tinkered a bit with the query wizard, but wasn't able to do what you mentioned. Would I have to build my own query, or am I just not seeing how to make the query with the wizard properly?

  4. #4
    Robeen is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Mar 2011
    Location
    Tulsa, Oklahoma.
    Posts
    1,593
    OR . . . you could create ONE query on your table - and under the 'Routine Maintenance' field - in the Criteria row - put this:
    [Enter Yes or No for Routine Maintenance]

    Now - when you run the query - it will ask you to provide a Yes or No value for 'Routine Maintenance'.

    Next - create the report - using the Wizard - based on your query.
    When you run the report - because it is getting data from the query, the query will prompt you for that value.

    Hope this helps!!

  5. #5
    MBA80 is offline Novice
    Windows Vista Access 2007
    Join Date
    May 2012
    Posts
    13
    I am in the query design view screen. Under the column for RoutineMaintenance I put what you said in the criteria field, fixed to match the name of the field for the checkbox. On the table in design view, I have the field name as RoutineMaintenance and the Data Type as Yes/No.

    When I save the query, after making the change you recommended, and try to run the query I get the box you mentioned "Enter Yes or No for RoutineMaintenance" If I put either yes or no in the box is responds with an error "This expression is typed incorrectly, or is too complex to be evaluated. For example, a numeric expression may contain too many complicated elements. Try simplyfing the expression by assigning parts of the expression to variables."

  6. #6
    Robeen is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Mar 2011
    Location
    Tulsa, Oklahoma.
    Posts
    1,593
    Change it to this:
    Code:
    [Enter -1 {Yes} or 0 {No}]
    The Yes [-1] means the check box will be checked . . .
    You can change the wording of the prompt to suit your need.

    There's a way to make this a more sophisticated prompt . . . but see if you can go with this for now.

  7. #7
    MBA80 is offline Novice
    Windows Vista Access 2007
    Join Date
    May 2012
    Posts
    13
    I ended up making two different queries. One for "yes" and one for "no." I then generated reports for each of the queries. Thank you for all the responses. They were helpful in getting me looking in the right location and giving me ideas to try, I appreciate it.

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

Similar Threads

  1. Replies: 3
    Last Post: 10-31-2011, 04:54 PM
  2. Report Fields Visible Based on Checkbox
    By ghillie30 in forum Access
    Replies: 2
    Last Post: 09-21-2011, 09:04 AM
  3. Hiding checkbox on report
    By bluezidane in forum Reports
    Replies: 2
    Last Post: 06-29-2011, 12:46 PM
  4. Checkbox unable to tick on a report
    By sabre1 in forum Reports
    Replies: 0
    Last Post: 11-08-2010, 09:38 AM
  5. Open report if checkbox is ticked
    By Patience in forum Reports
    Replies: 3
    Last Post: 06-23-2010, 08:34 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