J
Jay
Using A2k
Trying to determine how I can have a report be sorted based on user input.
My thoughts were to create a form to establish the user's preference for
sorting, then pass that value through the query. However, I cannot do IIF
statement in the Sort Row in the Query Design mode and when I enther the SQL
view, I do not believe I can use the iif statement. How best can I
accomplish this:
SELECT HospTbl.HospitalName, MCRINFO.ProviderID, HospTbl.Affiliation,
HospTbl.County, MCRINFO.Beds, MCRINFO.PatRev, MCRINFO.NonPatRev, MCRINFO.PL,
MCRINFO.Days, MCRINFO.Disch
FROM MCRINFO LEFT JOIN HospTbl ON MCRINFO.ProviderID = HospTbl.ProviderNum
ORDER BY HospTbl.HospitalName;
or
ORDER BY MCRINFO.PL;
or
ORDER BT MCRINFO.PatRev;
Thanks.
Trying to determine how I can have a report be sorted based on user input.
My thoughts were to create a form to establish the user's preference for
sorting, then pass that value through the query. However, I cannot do IIF
statement in the Sort Row in the Query Design mode and when I enther the SQL
view, I do not believe I can use the iif statement. How best can I
accomplish this:
SELECT HospTbl.HospitalName, MCRINFO.ProviderID, HospTbl.Affiliation,
HospTbl.County, MCRINFO.Beds, MCRINFO.PatRev, MCRINFO.NonPatRev, MCRINFO.PL,
MCRINFO.Days, MCRINFO.Disch
FROM MCRINFO LEFT JOIN HospTbl ON MCRINFO.ProviderID = HospTbl.ProviderNum
ORDER BY HospTbl.HospitalName;
or
ORDER BY MCRINFO.PL;
or
ORDER BT MCRINFO.PatRev;
Thanks.