Hi All,
I'm stuck on a query. I'm trying to select records based on their stock position and also based on location. if the loc_no is less then 10, i only want records with more than 50 units. then if loc_no is >10, it can return all records. i'm using Access 2000, please help.
here's what i got so far:
thanks
H
I'm stuck on a query. I'm trying to select records based on their stock position and also based on location. if the loc_no is less then 10, i only want records with more than 50 units. then if loc_no is >10, it can return all records. i'm using Access 2000, please help.
here's what i got so far:
Code:
SELECT BASE_Main_Refill_with_ST.Style, BASE_Main_Refill_with_ST.EOH_U, BASE_Main_Refill_with_ST.Loc_No
FROM BASE_Main_Refill_with_ST
WHERE (((BASE_Main_Refill_with_ST.EOH_U)=IIf("Loc_No"<10,50)));
H