Results 1 to 2 of 2
  1. #1
    sanjayakalpage is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jan 2015
    Posts
    5

    Sorting a report using combo box on a form.

    Dear friends,
    I have a form with a combo box named"sort by" with field headings as its values. And the form has a button to open a report. when click on the button how can I sort the report using the field selected by the combo box.
    Thank u...

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,625
    I've never done this but maybe the Order By property of report can reference the combobox. However, if the report uses Grouping & Sorting features, will probably override the Order By property. In which case, an expression in the report Grouping & Sorting set up could probably reference the combobox. Again, never tested.
    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.

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

Similar Threads

  1. Sorting Combo Box List
    By jrmbach in forum Forms
    Replies: 1
    Last Post: 08-05-2013, 04:22 PM
  2. Sorting Report Based off of a Combo Box in a Form
    By datadude60 in forum Reports
    Replies: 4
    Last Post: 04-30-2012, 10:38 AM
  3. Sorting combo boxes
    By thefairman in forum Forms
    Replies: 2
    Last Post: 02-29-2012, 12:12 PM
  4. Sorting Data in a Combo Box
    By Mutant_Mike in forum Access
    Replies: 1
    Last Post: 05-03-2011, 03:59 PM
  5. Sorting a Combo box?
    By newtoAccess in forum Access
    Replies: 3
    Last Post: 03-19-2011, 03:57 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