I have an Access 2010 Report in which I’d like to be able to set the Textbox Backcolor property based on the condition of another field value within the same record of the Report.
For example:
I’ve tried the following code in the Report Event Procedures “On Load” and “On Open” but it does not work:(
[INDENT]If Me.Textbox_1 > 0 Then[/INDENT]
[INDENT] Me.Textbox_2.BackColor = vbYellow[/INDENT]
[INDENT]Else[/INDENT]
[INDENT] Me.Textbox_2.BackColor = vbWhite[/INDENT]
[INDENT]End If[/INDENT]
Textbox_1 and Textbox_2 are fields within a single record from a Table or Query.
Any bright ideas that as to how I can do what I desire?
Thanks in anticipation
Trevor