I am using a form to allow the user to choose the sort and filter of the query. I have seven different fields that I need to allow them to sort by and I also need to allow them to pick the order in which they sort. This is the "Order By" code I am using but it is not working...can anyone fix this for me?
"Carcass Filter" is form name.
"Combo32" is the first combo box I have that allows them to choose the first field to sort by.
ORDER BY IIf(FORMS.[CARCASS FILTER].OPTION1=-1,FORMS.[CARCASS FILTER].COMBO32);
"Carcass Filter" is form name.
"Combo32" is the first combo box I have that allows them to choose the first field to sort by.
ORDER BY IIf(FORMS.[CARCASS FILTER].OPTION1=-1,FORMS.[CARCASS FILTER].COMBO32);