Hi All,
I have a form "frmLoadAllocation" that has a series of filter command buttons that filters a listbox "lstJDUnallocated" on a form "frmLoadAllocationUN".
The each cmd button has a similar OnClick event code as below, the only difference between the buttons is that the ContractID is different:
Forms!frmLoadAllocationUN.lstJDUnallocatedBD.RowSource = "SELECT * FROM qryUnallocateOrders WHERE ContractID=4"
Forms!frmLoadAllocationUN.lstJDUnallocatedBD.Requery
I'm trying to create a cmd button on "frmLoadAllocationUN" that allows me to sort my listbox "lstJDUnallocated" (in ascending or descending order) based on the Rowsource programmed in my filter command buttons.
Does anyone know how to do this?
I have a form "frmLoadAllocation" that has a series of filter command buttons that filters a listbox "lstJDUnallocated" on a form "frmLoadAllocationUN".
The each cmd button has a similar OnClick event code as below, the only difference between the buttons is that the ContractID is different:
Forms!frmLoadAllocationUN.lstJDUnallocatedBD.RowSource = "SELECT * FROM qryUnallocateOrders WHERE ContractID=4"
Forms!frmLoadAllocationUN.lstJDUnallocatedBD.Requery
I'm trying to create a cmd button on "frmLoadAllocationUN" that allows me to sort my listbox "lstJDUnallocated" (in ascending or descending order) based on the Rowsource programmed in my filter command buttons.
Does anyone know how to do this?
