Hello All!
I’m trying to sort a recordset in a list box called RRAListing. The list box is populated using the following code:
[RRAListing].RowSource = “RRAReportsList1”
where RRAReportsList1 is a query. I’d like to create a button that takes the recordset that is being displayed in the list box and sorts it. For example, it would sort the recordset being displayed in RRAListing by RRANo ASC. The thing is, the RRAListing list box gets it’s RowSource from different queries, depending on what dropdown you used to populate it (the form that RRAListing is on also has several dropdowns. Depending on which dropdown you select data from will depend on what query is used to populate RRAListing). I thought about adding the sort right to the queries, but I want to be able to sort the recordset dynamically using a couple of buttons, each one representing a column in the RRAListing recordset (so you could sort by RRA No, RRA Name or RRA date, etc.) The column headers are shown in the RRAListing list box – there isn’t any way I can make those “clickable” so the user could click on the header to sort the recordset being displayed in the list box, is there? If so – how?? And if not, does anyone have any ideas on how I can get the buttons I create to sort the recordset shown in the list box?
Thanks in advance,
Amanda