Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

changing the colour of the form.... 2

Status
Not open for further replies.

blondends

Technical User
Apr 25, 2003
84
GB
HI,

I am stuck on trying to change the background colour of a form depending on what text is in a textbox.


Please help, i know this is an easy one but i really can't work it out !!!

Cheers

Chris
 
Hi Chris,

If I undertand correctly, I threw this together this morning. I hope it helps.

'*************begin*********

Private Sub Text0_AfterUpdate()

If Text0.Text = "Hello" Then

Me.Detail.BackColor = 16744576

Else

Me.Detail.BackColor = 8421504

End If

End Sub

'****************end********************

Have A Great Day!!!, [bigglasses]

Nathan
Senior Test Lead
 
Cheers for that, it was exactly what i wanted !!

Chris
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top