Results 1 to 7 of 7
  1. #1
    dz227 is offline Novice
    Windows 10 Access 2016
    Join Date
    Jan 2017
    Posts
    4

    Access Web App - Sort combo box Descending

    I have an Access Web App and I have a blank page with a combo box that references a list of dates in a table. These are month end dates. Access seems to automatically sort these in ascending order. I have tried referencing a query that sorts the dates Descending, but the combo box still has the list ascending.



    Is it possible to override this?

    Here is the query

    Click image for larger version. 

Name:	1.png 
Views:	11 
Size:	20.4 KB 
ID:	27072

    Click image for larger version. 

Name:	2.png 
Views:	11 
Size:	17.1 KB 
ID:	27073

    Here is the combo box setup

    Click image for larger version. 

Name:	3.png 
Views:	12 
Size:	13.1 KB 
ID:	27074
    And live result
    Click image for larger version. 

Name:	4.png 
Views:	11 
Size:	8.9 KB 
ID:	27075

  2. #2
    Join Date
    Jun 2015
    Location
    Wales. Land of the sheep.
    Posts
    1,228
    Is the combo box using the query or the table as a reference? (its source)

  3. #3
    dz227 is offline Novice
    Windows 10 Access 2016
    Join Date
    Jan 2017
    Posts
    4
    "Row Source" is referencing the sorted query, and Bound Field and Display Field are referencing the column of the Descending Dates in the query. See my screenshot examples.

  4. #4
    Join Date
    Jun 2015
    Location
    Wales. Land of the sheep.
    Posts
    1,228
    I see. I've never seen the properties displayed in such a way. I assumed that was something you made..? Or is that normal in webb app?

  5. #5
    dz227 is offline Novice
    Windows 10 Access 2016
    Join Date
    Jan 2017
    Posts
    4
    This is what Access Web Apps 2016 looks like. These are screenshots from Access 2016. (I don't have the skill to custom make something like this.)

  6. #6
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,421
    I presume you have saved your query with the descending sort before opening the form? If it is still open, the form will be referencing the original unsorted version.

    I don't use web apps, but it may be you have to delete the rowsource, save, then reselect it to update the underlying code

  7. #7
    Micron is online now Virtually Inert Person
    Windows 7 32bit Access 2007
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,799
    cross posted here
    https://www.mrexcel.com/forum/micros...escending.html
    dz227 (or dlz227 as the case may be) please review this page
    http://www.excelguru.ca/content.php?184
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

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

Similar Threads

  1. Me.SortBy descending not effective
    By GraeagleBill in forum Forms
    Replies: 3
    Last Post: 09-14-2016, 02:02 PM
  2. Sort on Cascading Combo Box
    By Gaddy in forum Programming
    Replies: 2
    Last Post: 07-10-2013, 02:51 PM
  3. Replies: 7
    Last Post: 03-01-2013, 01:02 PM
  4. Make TEXTBOXES sort by DESCENDING order
    By taimysho0 in forum Programming
    Replies: 1
    Last Post: 12-05-2011, 04:52 PM
  5. Sort Combo Box Contents
    By aputt@ssd.com in forum Programming
    Replies: 3
    Last Post: 12-03-2009, 04:47 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