projecttoday
Programmer
I have the following code in the On Print event of my report:
If Me.type1 <> "W" Then
Me.txtName1.BackColor = 12632256
Me.txtTime.BackColor = 12632256
Else
Me.txtName1.BackColor = 16777215
Me.txtTime.BackColor = 16777215
End If
And it works for Me.txtName1 but it doesn't work for Me.txtTime. Any idea why? Both are textboxes based on concatenated fields from the input query. 12632256
is gray and 16777215 is white. When type1 is W, txtName1 is gray but txtTime is not.
If Me.type1 <> "W" Then
Me.txtName1.BackColor = 12632256
Me.txtTime.BackColor = 12632256
Else
Me.txtName1.BackColor = 16777215
Me.txtTime.BackColor = 16777215
End If
And it works for Me.txtName1 but it doesn't work for Me.txtTime. Any idea why? Both are textboxes based on concatenated fields from the input query. 12632256
is gray and 16777215 is white. When type1 is W, txtName1 is gray but txtTime is not.