Change colour on form for different names

Joined
Sep 4, 2006
Messages
8
Reaction score
0
Hi,

I have a textbox field [Trade] in a form and I want to make each different name (Pipefitter=green, BoilerMaker=Blue, IronWorker=yellow, SheetMetal=purple, Insulator=red,Scaffolder=orange)a different colour. I used the conditioning format but I can only get three different colours. There is a way in code but I don't know how to write it. It is something like this? On the after update event Trade.forecolour = "Pipefitter" vb green
Trade.forecolour = "BoilerMaker" vb Blue
Trade.forecolour = "IronWorker" vb yellow
Trade.forecolour = "SheetMetal" vb purple
Trade.forecolour = "Insulator" vb red
Trade.forecolour = "Scaffolder" vb orange
or there is some number to put instead of vb (colour) I'm not sure
Can someone help me.
Thanks Bryyan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top