Results 1 to 6 of 6
  1. #1
    AThomas is offline Novice
    Windows Vista Access 2010 32bit
    Join Date
    Jan 2012
    Posts
    3

    Question Only display pending orders in report?

    Hi guys,



    I'm trying to create a report that will only show entries where the 'Paid' checkbox value is true and the 'Dispatched' checkbox value is false. It's been a long time since I've done anything in access and all the syntax has long gone from my memory.

    Can anyone help?

    Thanks,

    Ash

  2. #2
    jzwp11 is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2010
    Location
    Dayton, OH
    Posts
    2,901
    Welcome to the forum!

    You can create a query that does the filtering for you. Then you would base the report on that query.

  3. #3
    AThomas is offline Novice
    Windows Vista Access 2010 32bit
    Join Date
    Jan 2012
    Posts
    3
    Ahhh thanks very much, I don't know why I didn't think of that in the first place to be honest.

  4. #4
    jzwp11 is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2010
    Location
    Dayton, OH
    Posts
    2,901
    Another option would be to leave the report based a table or query that returns all records, but use a form to control whether all records or just the pending records are shown in the report.

    To do this, I typically use an unbound form with either an option group or a combo box where the use chooses which version of the report they want and then they would click a button. In the code behind the button you would either just open the report unfiltered or filter the report as it opens based on the selection made by the user.

  5. #5
    AThomas is offline Novice
    Windows Vista Access 2010 32bit
    Join Date
    Jan 2012
    Posts
    3
    Thanks, that's a brilliant idea. I might try and give that a go but I'm not sure whether my access skills are up to it to be honest... like I said, it's been a while.

  6. #6
    jzwp11 is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2010
    Location
    Dayton, OH
    Posts
    2,901
    I've attached an example database that illustrates the code necessary. Just open the form: frmReportSelect.

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

Similar Threads

  1. Can access analyze orders with a SKU list?
    By shubhamgandhi in forum Programming
    Replies: 3
    Last Post: 08-08-2011, 01:12 PM
  2. Purchase orders 2 in 1
    By jordanturner in forum Forms
    Replies: 1
    Last Post: 09-09-2010, 03:38 AM
  3. Book orders logging system
    By smithy in forum Access
    Replies: 2
    Last Post: 04-30-2010, 09:41 AM
  4. Report control of a field display/no display
    By systems013 in forum Reports
    Replies: 5
    Last Post: 02-01-2010, 09:44 AM
  5. Orders & Products
    By mastromb in forum Database Design
    Replies: 4
    Last Post: 01-22-2010, 07:59 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