D
DevilDog1978
SELECT [dbo_tams_se t1].item_nbr, FY09_CVN_CALSEL.[Model Number],
FY09_CVN_CALSEL.CAGE, FY09_CVN_CALSEL.Nomenclature, FY09_CVN_CALSEL.[Auth
Qty], [dbo_tams_icp_ce t1].icp, [dbo_tams_icp_ce t1].ce_qty, [ICP_MET] AS
Expr1
FROM (FY09_CVN_CALSEL INNER JOIN [dbo_tams_se t1] ON (FY09_CVN_CALSEL.[Model
Number] = [dbo_tams_se t1].part_nbr) AND (FY09_CVN_CALSEL.CAGE = [dbo_tams_se
t1].cage)) INNER JOIN [dbo_tams_icp_ce t1] ON [dbo_tams_se t1].item_nbr =
[dbo_tams_icp_ce t1].item_nbr
WHERE ((([ICP_MET])=IIf(([FY09_CVN_CALSEL].[Auth Qty]>=[dbo_tams_icp_ce
t1]![ce_qty])=True,[T],[F])))
WITH OWNERACCESS OPTION;
I am trying to accomplish a query that will compare by item_nbr the quantity
called for in the FY09_CVN_CALSEL table and the dbo_tams_icp_ce t1 table. I
want it to populate a field with a T or an F based on
IIf(([FY09_CVN_CALSEL].[Auth Qty]>=[dbo_tams_icp_ce t1]![ce_qty])=True. Where
am I going wrong?
FY09_CVN_CALSEL.CAGE, FY09_CVN_CALSEL.Nomenclature, FY09_CVN_CALSEL.[Auth
Qty], [dbo_tams_icp_ce t1].icp, [dbo_tams_icp_ce t1].ce_qty, [ICP_MET] AS
Expr1
FROM (FY09_CVN_CALSEL INNER JOIN [dbo_tams_se t1] ON (FY09_CVN_CALSEL.[Model
Number] = [dbo_tams_se t1].part_nbr) AND (FY09_CVN_CALSEL.CAGE = [dbo_tams_se
t1].cage)) INNER JOIN [dbo_tams_icp_ce t1] ON [dbo_tams_se t1].item_nbr =
[dbo_tams_icp_ce t1].item_nbr
WHERE ((([ICP_MET])=IIf(([FY09_CVN_CALSEL].[Auth Qty]>=[dbo_tams_icp_ce
t1]![ce_qty])=True,[T],[F])))
WITH OWNERACCESS OPTION;
I am trying to accomplish a query that will compare by item_nbr the quantity
called for in the FY09_CVN_CALSEL table and the dbo_tams_icp_ce t1 table. I
want it to populate a field with a T or an F based on
IIf(([FY09_CVN_CALSEL].[Auth Qty]>=[dbo_tams_icp_ce t1]![ce_qty])=True. Where
am I going wrong?