Yes, thanks FDibbins, that makes everything much simpler! I was tediously writing out 20 or 30 IF statements before thanks to my lack of knowledge.