Click here to Skip to main content
15,909,242 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
("select IIF(MAX(bill_bno) IS NULL,1,MAX(bill_bno)+1) from rec_all where rw=0 and iif(month(bill_date)>=1 AND month(bill_date)= 1 And Month(Date) <= 3, Year(Date) - 1, Year(Date)))

What I have tried:

I have access query and I am converting it to SQL Server 2012. I'm looking for the equivalent to the Access IIF statement in SQL Server.

Below is the statement I am trying to convert;
Posted
Updated 23-Feb-17 20:17pm

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900