Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
h2sut
Starting Member
40 Posts |
Posted - 2008-06-24 : 11:24:56
|
Hello does anyone know how to convert this access code to sql. Also is there a program out there that will do it for you.IIf([Ceridian]![UnionIndicator]="U" And [YearsService]>=3,[HealthBenefits]![medplan.Bi-WeeklyURBio-Rad]*26,[HealthBenefits]![medplan.Bi-WeeklyBio-Rad]*26) AS MedicalCostER, IIf([Ceridian]![UnionIndicator]="U" And [YearsService]>=3,[medplan]![Bi-WeeklyUREE]*26,[medplan]![Bi-WeeklyEE]*26) AS MEdicalCostEE |
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2008-06-24 : 12:56:00
|
HintIIF(condition,value1,value2) can be written asCASE WHEN condition then value1 else value2 ENDMadhivananFailing to plan is Planning to fail |
 |
|
|
|
|