G
Guest
This is the query that I have
PARAMETERS Forms!frm_low_Test!cboService Text, Forms!frm_low_Test!txtEffective DateTime
SELECT DI.
FROM tbl_delivery_info AS DI INNER JOIN [ SELECT Dest_Unit, SHIPPER, Max(Eff_Date) AS Max_Eff_Dat
FROM tbl_delivery_inf
WHERE (((tbl_delivery_info.Service_Level)=IIf(Forms!frm_low_Test!cboService=" ",(tbl_delivery_info.Service_Level),Forms!frm_low_Test!cboService)) AND ((tbl_delivery_info.Eff_Date)=IIf(IsNull(Forms!frm_low_Test!txtEffective),(tbl_delivery_info.Eff_Date),<= (Forms!frm_low_Test!txtEffective))) AND ((tbl_delivery_info.End_Date) Is Null Or (tbl_delivery_info.End_Date)>Now())
GROUP BY Dest_Unit, SHIPPER]. AS T ON (DI.SHIPPER = T.SHIPPER) AND (DI.Eff_Date = T.Max_Eff_Date) AND (DI.Dest_Unit = T.Dest_Unit)
The query work when I did not have the <= sign in the query...but as soon as I put the <= sign I got the following messag
Syntax error( missing operator ) in query expression. Please help me. I've been stuck on this for a while. Thanks in advance.
PARAMETERS Forms!frm_low_Test!cboService Text, Forms!frm_low_Test!txtEffective DateTime
SELECT DI.
FROM tbl_delivery_info AS DI INNER JOIN [ SELECT Dest_Unit, SHIPPER, Max(Eff_Date) AS Max_Eff_Dat
FROM tbl_delivery_inf
WHERE (((tbl_delivery_info.Service_Level)=IIf(Forms!frm_low_Test!cboService=" ",(tbl_delivery_info.Service_Level),Forms!frm_low_Test!cboService)) AND ((tbl_delivery_info.Eff_Date)=IIf(IsNull(Forms!frm_low_Test!txtEffective),(tbl_delivery_info.Eff_Date),<= (Forms!frm_low_Test!txtEffective))) AND ((tbl_delivery_info.End_Date) Is Null Or (tbl_delivery_info.End_Date)>Now())
GROUP BY Dest_Unit, SHIPPER]. AS T ON (DI.SHIPPER = T.SHIPPER) AND (DI.Eff_Date = T.Max_Eff_Date) AND (DI.Dest_Unit = T.Dest_Unit)
The query work when I did not have the <= sign in the query...but as soon as I put the <= sign I got the following messag
Syntax error( missing operator ) in query expression. Please help me. I've been stuck on this for a while. Thanks in advance.