R
Ruth Isaacs
Hello All
I have a continuous form containing a number field (long integer) called
[v_colour]. This field contains the number of a certain colour - as per the
numbers that are used in the format properties for back colour etc. I would
like to set the back colour for the form's [v_colour] text box to be the
value of the field:
e.g.
If the value of [v_colour] in the first record is 255, I want the back
colour of the textbox for that record to be bright red.
I tried this as the OnLoad event for the form:
[v_colour].backcolour = [v_colour].value
.... but this resulted in the back colour of the textbox in EVERY record
being set to the value of [v_colour] in the first record - i.e. [v_colour]
had the same back colour for every record, even though the value of
[v_colour] was different for every record.
I'm sure this can be done - but can't seem to get it!
Hope someone can help.
Many thanks
Les
I have a continuous form containing a number field (long integer) called
[v_colour]. This field contains the number of a certain colour - as per the
numbers that are used in the format properties for back colour etc. I would
like to set the back colour for the form's [v_colour] text box to be the
value of the field:
e.g.
If the value of [v_colour] in the first record is 255, I want the back
colour of the textbox for that record to be bright red.
I tried this as the OnLoad event for the form:
[v_colour].backcolour = [v_colour].value
.... but this resulted in the back colour of the textbox in EVERY record
being set to the value of [v_colour] in the first record - i.e. [v_colour]
had the same back colour for every record, even though the value of
[v_colour] was different for every record.
I'm sure this can be done - but can't seem to get it!
Hope someone can help.
Many thanks
Les