This query works in the query design window but doesn't display any data in the combobox in the form.
Code:
select distinct '<ALL>' as equipment from tblmimain UNION ALL SELECT DISTINct tblMIMAIN.A_EQUIPDESCR AS Equipment FROM tblMIMAIN WHERE (((tblMIMAIN.A_LOCATION)>IIf (GetAsset()="**ALL**","a","ZZ") Or (tblMIMAIN.A_LOCATION) =GetAsset()) AND ((tblMIMAIN.A_SYSTEM)="NEN"));
Comment