I have a custom field in a query
Outcomereport: IIf([Outcome] Is Null,"No outcome",IIf([Outcome]="GP","GP",IIf([Outcome]="Cardioversion","Cardioversion",IIf([Outcome]="Cardiology","Cardiology",0))))
but is there a more efficient way doing this so it says if the outcome is null "no outcome" ........ otherwise keep whatever else is recorded as an outcome
As you can see its ok as i only have 4 outcomes but the above code would be a nightmare to type if there were lots of outcomes!
Cheers in anticipation guys n gals
Outcomereport: IIf([Outcome] Is Null,"No outcome",IIf([Outcome]="GP","GP",IIf([Outcome]="Cardioversion","Cardioversion",IIf([Outcome]="Cardiology","Cardiology",0))))
but is there a more efficient way doing this so it says if the outcome is null "no outcome" ........ otherwise keep whatever else is recorded as an outcome
As you can see its ok as i only have 4 outcomes but the above code would be a nightmare to type if there were lots of outcomes!
Cheers in anticipation guys n gals