I have a conditional query:
IIf(([202 Method of Admission] = "1. Called GP who saw patient then called emergency services" Or [202 Method of Admission] = "2. Called GP who called emergency service then saw patient” Or [202 Method of Admission] = “3. Called 999"),"Called 999", IIf([202 Method of Admission] = "4. Called NHS Direct" Or [202 Method of Admission] = "5. Made own way to hospital (did not call anyone)” Or [202 Method of Admission] =“6. Called local helpline“ Or [202 Method of Admission] = "7. Called GP - told to make own way to hospital" Or [202 Method of Admission] = "9. Transferred for PCI/Surgery“, “A&E”, “Other”))
But this is not working - due to highlighted invalid syntax?
Many thanks for support in advance
IIf(([202 Method of Admission] = "1. Called GP who saw patient then called emergency services" Or [202 Method of Admission] = "2. Called GP who called emergency service then saw patient” Or [202 Method of Admission] = “3. Called 999"),"Called 999", IIf([202 Method of Admission] = "4. Called NHS Direct" Or [202 Method of Admission] = "5. Made own way to hospital (did not call anyone)” Or [202 Method of Admission] =“6. Called local helpline“ Or [202 Method of Admission] = "7. Called GP - told to make own way to hospital" Or [202 Method of Admission] = "9. Transferred for PCI/Surgery“, “A&E”, “Other”))
But this is not working - due to highlighted invalid syntax?
Many thanks for support in advance