johnlatona123
Innovator
- Local time
- Today, 11:49
- Joined
- Sep 20, 2011
- Messages
- 85
hello access guru's!
heres my issue...
i have a multi line report with a mess of fields in it. i would like to change the back color of specifically a field, a header, and a group based on the criteria of a field.
so for example i tried this...
on load
if [field] = "word" then
me![field].backcolor = 4754153
else
me![field].backcolor = 2552420
end if
this did NOT error out, but also did not work, it would not recognize my critera of "word" therefore colored all the field the else color
in addition to that, it would seem it is mixing colors, like if i used RGB code for red as the if and yellow as the else, i would end up with an orange field. which makes even less sense to me.
can anyone spell out some code with the correct syntax so that i can apply it to my DB?
please help!
thanks!
heres my issue...
i have a multi line report with a mess of fields in it. i would like to change the back color of specifically a field, a header, and a group based on the criteria of a field.
so for example i tried this...
on load
if [field] = "word" then
me![field].backcolor = 4754153
else
me![field].backcolor = 2552420
end if
this did NOT error out, but also did not work, it would not recognize my critera of "word" therefore colored all the field the else color
in addition to that, it would seem it is mixing colors, like if i used RGB code for red as the if and yellow as the else, i would end up with an orange field. which makes even less sense to me.
can anyone spell out some code with the correct syntax so that i can apply it to my DB?
please help!
thanks!