Results 1 to 4 of 4
  1. #1
    dmon2010 is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Sep 2013
    Posts
    39

    Only print items that have a checked checkbox?

    Hello, I've been using MS access 2007 but am still pretty green.



    I have a form where I enter an order number, then click a button. This runs a query and opens a report that lists all of the corresponding entries with the matching order number.

    The way I have the report set up right now, each item on the report has 2 buttons. One button creates an acceptance report, and the other button creates a discrepancy report.

    What I'd like to do is have a check box for each item instead of the 2 buttons. I would like to be able to check one or more items and have a single button for acceptance reports (or discrepancy reports) at the bottom. Ideally, this would add the totals for each item (not count each item) and create single acceptance report for the grand total of all items.

    Is this possible to do?

    Here's an image of the existing report as it is now...

    Any help would be greatly appreciated. Thanks in advance.Click image for larger version. 

Name:	Capture2.26.JPG 
Views:	18 
Size:	59.9 KB 
ID:	23865

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    yes, in the table, add a field ACCEPTANCE as a YES/NO type.
    In the Acceptance query , youd pull only those.
    select * from table where [Acceptance] = true

  3. #3
    ssanfu is offline Master of Nothing
    Windows XP Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    The way I have the report set up right now, each item on the report has 2 buttons.
    Why are you doing this in a report?
    It would be better to use a form.

    As ranman said, have a Boolean field in a table to be able to select the records to be printed.
    Would need 3 buttons:
    A button for the acceptance report
    Another button for the discrepancy report
    Button 3 to un-select (un-check) the selected records.

  4. #4
    dmon2010 is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Sep 2013
    Posts
    39
    Yeah I realized that a form would be a better approach. Changed the report to a form, but still having a difficult time getting it right. Can't seem to get it to sum the quantities... and how would I have the 3rd button un-check the checked records?

    Thanks

    EDIT:

    Figured it out. Thanks for the help!
    Last edited by dmon2010; 02-29-2016 at 01:16 PM.

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

Similar Threads

  1. Print Checkbox on report only if checked
    By azhar2006 in forum Reports
    Replies: 5
    Last Post: 10-26-2014, 11:59 PM
  2. display image if checkbox is checked
    By Casey Sanders in forum Reports
    Replies: 5
    Last Post: 04-03-2013, 04:49 PM
  3. If checkbox is checked allow query to run
    By burrina in forum Forms
    Replies: 14
    Last Post: 01-29-2013, 03:56 PM
  4. VBA for testing if checkbox is checked
    By rhewitt in forum Programming
    Replies: 0
    Last Post: 09-26-2012, 07:11 AM
  5. If checkbox is checked, add X to a current value
    By INeedAboutTreeFiddy in forum Programming
    Replies: 4
    Last Post: 05-30-2012, 08:17 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