G
Guest
I'll simplify the scenario - I hope there's a way to solve this.
I have a form which displays an address, and then a sub-form which displays
(as a continuous form) the people who live at that address and their gender.
On the subform, I would like to display the Males in Blue, and the Females
in Red.
On a report, this is easy - just set up some code in the "On Format" event
which states basically "If Gender = M then Colour = Blue, else Colour = Red".
Easy-peasy.
How do I do this on a FORM?
If I use the On Current event (or really any other event I've tried), it
changes the colour for ALL records on the Form. So basically if my top
record is male, EACH record shows up blue, and vice versa (if top is female,
they all show up red).
I'm hoping there's a simple solution for this - I do not want to have to use
a report to display this data...
Thanks in advance...
Greg
I have a form which displays an address, and then a sub-form which displays
(as a continuous form) the people who live at that address and their gender.
On the subform, I would like to display the Males in Blue, and the Females
in Red.
On a report, this is easy - just set up some code in the "On Format" event
which states basically "If Gender = M then Colour = Blue, else Colour = Red".
Easy-peasy.
How do I do this on a FORM?
If I use the On Current event (or really any other event I've tried), it
changes the colour for ALL records on the Form. So basically if my top
record is male, EACH record shows up blue, and vice versa (if top is female,
they all show up red).
I'm hoping there's a simple solution for this - I do not want to have to use
a report to display this data...
Thanks in advance...
Greg