I am getting myself confused having spent too much time on an IIF statement
I have a query where I want to create a column named TrainingStatus and have it filled with either 'Not Trained' or 'In Progress' or 'Trained'.
I have used the following but get an error message saying that I have the wrong number of arguments.
Can anyone help please?
I have a query where I want to create a column named TrainingStatus and have it filled with either 'Not Trained' or 'In Progress' or 'Trained'.
I have used the following but get an error message saying that I have the wrong number of arguments.
Code:
TrainingStatus: IIf(IsNull([StartTime]),"Not Trained",IIf(Not IsNull([StartTime]) AND (IsNull([DateCompleted],"In Progress"),IIF(Not IsNull([StartTime]) AND (Not IsNull([DateCompleted]),"Trained"))
Can anyone help please?