mlcktmguy
asked on
Continuous form, different color background depending on record status
I am showing the a continuous form containing both active and inactive records. This is based on the contents of field 'Active_YN'.
I wanted to put a yellow background on inactive records and white on active records so I tried this in the Current event:
If active_yn=-1 then
me.detail.background = vbyellow
else
me.detail.nackground= vbwhite
endif
This doesn't work as I had hoped. When an active record is current the entire background of the form is white, when an inactive record is current, the entire background of the form is yellow.
I want the user to look at a continuous screen with multiple records showing. The inactive ones would have a yellow background and the active ones would have a white background.
Is this possible ?
I wanted to put a yellow background on inactive records and white on active records so I tried this in the Current event:
If active_yn=-1 then
me.detail.background = vbyellow
else
me.detail.nackground= vbwhite
endif
This doesn't work as I had hoped. When an active record is current the entire background of the form is white, when an inactive record is current, the entire background of the form is yellow.
I want the user to look at a continuous screen with multiple records showing. The inactive ones would have a yellow background and the active ones would have a white background.
Is this possible ?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks
http://office.microsoft.com/en-us/access-help/change-the-appearance-of-a-control-by-using-conditional-formatting-HA010208133.aspx
Jim.