Thank you for your reply. My data on the form is is a datasheet format. Conditional formatting does work, but I have 11 conditions, so needs to be coded. The code you provided, unfortunately doesn't seem to work. I don't know if this is because it is in a datasheet view or what. Although it could be me, not to good at the programming side of this.
I think you'll find that that is the problem. Could you make your form a continuous form? This will however raise it's own set of idiosyncrasies (problems).