May 3, 2003 #1 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, 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
May 3, 2003 2 #2 nat1967 Technical User Feb 13, 2001 287 US 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!!!, Nathan Senior Test Lead Upvote 0 Downvote
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!!!, Nathan Senior Test Lead
May 3, 2003 Thread starter #3 blondends Technical User Apr 25, 2003 84 GB Cheers for that, it was exactly what i wanted !! Chris Upvote 0 Downvote