D
dchristo
I am creating a pass thru query in SQL
SELECT
dbo.flat_master1.id,dbo.flat_master1.filercvd,dbo.flat_master1.claim_type,dbo.flat_master2.saledate,dbo.master2.deliverdate,,dbo.master2.state,IIf([claim_type]
in('bike'),dbo.master2.saledate +60,IIf([Claim_type] Not in
('bike'),dbo.mistat2.deliverdate + 60)) AS Projected Date
From (dbo.flat_master1 inner join dbo.master2 on dbo.flat_master1.muniq_id =
dbo.master2.uniq_id)
I cannot get the iif statement to work.
Any help would be appreciated.
SELECT
dbo.flat_master1.id,dbo.flat_master1.filercvd,dbo.flat_master1.claim_type,dbo.flat_master2.saledate,dbo.master2.deliverdate,,dbo.master2.state,IIf([claim_type]
in('bike'),dbo.master2.saledate +60,IIf([Claim_type] Not in
('bike'),dbo.mistat2.deliverdate + 60)) AS Projected Date
From (dbo.flat_master1 inner join dbo.master2 on dbo.flat_master1.muniq_id =
dbo.master2.uniq_id)
I cannot get the iif statement to work.
Any help would be appreciated.