G
Guest
Please can you help my query keeps saying it is too complex and i am not sure
how to get around the problem (not wanting to do more queries to supply me
with the daya i need)
Below I have showm my query
Expr1: Switch([DrCode] Like "DCOE*","Care of The Elderly",[DrCode] Like
"DENT*" And "DER*" And "DHE*" And "DEC*","E.N.T",[DrCode] Like
"DM*","Medical",[DrCode] Like "DGYN*" And "DGR*" And "DGH*" And
"DGC*","Gynaecology",[DrCode] Like "DOPH*","Ophthalmology",[DrCode] Like
"DORS*" And "DOS*","Oral Surgery",[DrCode] Like "DOR*" And "DOC" And
"DOH","Orthopaedic",[DrCode] Like "DPAE*" And "DPC" And "DPH" And
"DPR","Paediatrics",[DrCode] Like "DPSY*","Psychiatry",[DrCode] Like
"DSUR*","Surgical") it returns results saying too complex its so annoying if
i do an if statement it does not like it please help.
thankyou
kate
how to get around the problem (not wanting to do more queries to supply me
with the daya i need)
Below I have showm my query
Expr1: Switch([DrCode] Like "DCOE*","Care of The Elderly",[DrCode] Like
"DENT*" And "DER*" And "DHE*" And "DEC*","E.N.T",[DrCode] Like
"DM*","Medical",[DrCode] Like "DGYN*" And "DGR*" And "DGH*" And
"DGC*","Gynaecology",[DrCode] Like "DOPH*","Ophthalmology",[DrCode] Like
"DORS*" And "DOS*","Oral Surgery",[DrCode] Like "DOR*" And "DOC" And
"DOH","Orthopaedic",[DrCode] Like "DPAE*" And "DPC" And "DPH" And
"DPR","Paediatrics",[DrCode] Like "DPSY*","Psychiatry",[DrCode] Like
"DSUR*","Surgical") it returns results saying too complex its so annoying if
i do an if statement it does not like it please help.
thankyou
kate