G
Guest
Does anyone know of a better way to write this? It's a formula in a query
which DOES give me the right results, but seems like I'm taking a very long
way.
LDL_Goal: IIf([DiabetesRF]=1 And [CHD or Equ]=1,70,IIf([DiabetesRF]=0 And
[CHD or Equ]=1 And [CHD Risk]>20,70,IIf([DiabetesRF]=1 And [CHD or
Equ]=0,100,IIf([DiabetesRF]=0 And [CHD or Equ]=1 And [CHD
Risk]<20,100,IIf([DiabetesRF]=0 And [CHD or Equ]=0 And [CHD
Risk]>20,100,IIf([DiabetesRF]=0 And [CHD or Equ]=0 And [CHD Risk]<20 And
[TotalRisk]<2,160,130))))))
Any help would be appreciated. Thank you.
Joe
which DOES give me the right results, but seems like I'm taking a very long
way.
LDL_Goal: IIf([DiabetesRF]=1 And [CHD or Equ]=1,70,IIf([DiabetesRF]=0 And
[CHD or Equ]=1 And [CHD Risk]>20,70,IIf([DiabetesRF]=1 And [CHD or
Equ]=0,100,IIf([DiabetesRF]=0 And [CHD or Equ]=1 And [CHD
Risk]<20,100,IIf([DiabetesRF]=0 And [CHD or Equ]=0 And [CHD
Risk]>20,100,IIf([DiabetesRF]=0 And [CHD or Equ]=0 And [CHD Risk]<20 And
[TotalRisk]<2,160,130))))))
Any help would be appreciated. Thank you.
Joe