G
Guest
Hello to all
Lets say I have a query like this...
SELECT P.CustID, P.CustName, P.A1, P.A2, P.B1, P.B2, ...
FROM ............ AS P
WHERE ...........
ORDER BY P.A1 DESC, P.CustName;
so far so good. Everything works. Now, my form that is based on this query
has a combo box whose value list is A1, A2, B1, B2, .... I want the ORDER BY
to get its first sort citeria from this cbx. Something like
ORDER BY Forms!frmCust.cbxSortCrit DESC, P.CustName;
No luck - the second sort criteria is followed, but the 1st is just ignored.
Does anyone know how I can solve this?
thanks
Lets say I have a query like this...
SELECT P.CustID, P.CustName, P.A1, P.A2, P.B1, P.B2, ...
FROM ............ AS P
WHERE ...........
ORDER BY P.A1 DESC, P.CustName;
so far so good. Everything works. Now, my form that is based on this query
has a combo box whose value list is A1, A2, B1, B2, .... I want the ORDER BY
to get its first sort citeria from this cbx. Something like
ORDER BY Forms!frmCust.cbxSortCrit DESC, P.CustName;
No luck - the second sort criteria is followed, but the 1st is just ignored.
Does anyone know how I can solve this?
thanks