Writing a sub to change controls

IanHem

Registered User.
Local time
Today, 22:42
Joined
Jul 8, 2014
Messages
106
I have a form with 10 text boxes on it.
depending on a Case

i would like to change the special effect and backcolor

select case colour()
case red

Me.Txt1.specialeffect = 1
Me.Txt1.backcolor = RGB(256,256,256,)

case green
etc

I'm trying to write something so that i can apply both these settings to any text box easily.

Any help is much appreciated.
 
I think that a better way is to us the Optional Format.
 

Users who are viewing this thread

Back
Top Bottom