On a Form, there is a Listbox that is populated with records that result from a DoCmd.OpenQuery "SearchQ" when an event occurs.
One of the fields in the ListBox is 'City'. Is it possible, without re-executing the 'SearchQ' query and re-populating the ListBox, to sort the ListBox records on the 'City' field? I could add 'Sort' button or do some other event to initiate the sort but I don't know what VBA code to use. Or, is there a Requery command that I can use to sort the ListBox records on 'City'?
Thanks.
One of the fields in the ListBox is 'City'. Is it possible, without re-executing the 'SearchQ' query and re-populating the ListBox, to sort the ListBox records on the 'City' field? I could add 'Sort' button or do some other event to initiate the sort but I don't know what VBA code to use. Or, is there a Requery command that I can use to sort the ListBox records on 'City'?
Thanks.