In the following portion of my SQL, I am having a problem in getting the appropriate results. If [PEPolice]=True, I want the job title to be "Police" and if [PEDriver]=True, then I want the job title to be Drivers. This part displays the appropriate results. However, if neither are true, then whatever is in the other remaining fields, I want that particular job title displayed. In my results, I do get Police and Drivers, however in all the other records, I get a –1. I am puzzled as to what the correct formula is. Any suggestions would be helpful. The source is coming from tblMaster Data List.
TypeOfJobTitle: IIf([PEPolice]=True,"Police",IIf([PEDriver]=True,"Drivers",[PSWSPJobTitle] Or [PPEJobTitle] Or [OEJobTitle] Or [DeployJobTitle]))
TypeOfJobTitle: IIf([PEPolice]=True,"Police",IIf([PEDriver]=True,"Drivers",[PSWSPJobTitle] Or [PPEJobTitle] Or [OEJobTitle] Or [DeployJobTitle]))