text box back color change

L

lane55

I have a form with two general number text boxes one
contains a formula the other is just a number. I am trying
to change the backcolor of text1 if it is greater than text2.
On afterupdate of text1 I have
IF Me![text1] > Me![text2] Then Me.text1.backcolor = 1677215

Nothing happens, what am I missing?
 
S

Steve Schapel

Lane,

Shooting in the dark here...
Is the value of Text2 dependent on the value of Text1? If so, the After
Update event of Text1 might be too early to try the comparison. Another
thought... maybe the Back Style property of Text1 is set to Transparent.
 
L

Lane 55

After update was too early for the comparison. Thanks for
your help. Lane55
-----Original Message-----
Lane,

Shooting in the dark here...
Is the value of Text2 dependent on the value of Text1? If so, the After
Update event of Text1 might be too early to try the comparison. Another
thought... maybe the Back Style property of Text1 is set to Transparent.

--
Steve Schapel, Microsoft Access MVP
I have a form with two general number text boxes one
contains a formula the other is just a number. I am trying
to change the backcolor of text1 if it is greater than text2.
On afterupdate of text1 I have
IF Me![text1] > Me![text2] Then Me.text1.backcolor = 1677215

Nothing happens, what am I missing?
.
 

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