Results 1 to 2 of 2
  1. #1
    homerj56 is offline Novice
    Windows XP Access 2003
    Join Date
    Jul 2010
    Location
    Roswell, GA
    Posts
    8

    Checkbox to sort records


    Using Access 2003. I have a form called frm_Report_Selection which has two buttons to launch two different reports, each with its own query. No problem there. I wish to add a check box to this form that when checked, will only send open records to the report. The report is based on qry_Report_Summary and has a field called Status1. This field's value is either Open or Closed. So, I check the box on my form and only those records whose Status1=Open are sent to the report (via on-click event on the frm_Report_Selection). Thanks!

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    I would probably use If/Then code and this technique:

    BaldyWeb wherecondition

    In other words, test the checkbox and restrict the records if checked.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Sort Combo Box Contents
    By aputt@ssd.com in forum Programming
    Replies: 3
    Last Post: 12-03-2009, 04:47 PM
  2. Sort by even or odd number
    By sammer021486 in forum Queries
    Replies: 7
    Last Post: 11-23-2009, 12:30 PM
  3. How to sort by three sort orders
    By captgnvr in forum Access
    Replies: 4
    Last Post: 11-09-2009, 07:30 AM
  4. Macro to Run RemoveFilter/Sort
    By Ryan in forum Access
    Replies: 0
    Last Post: 08-30-2009, 01:41 AM
  5. Sort
    By mmp97 in forum Access
    Replies: 1
    Last Post: 12-18-2008, 10:14 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