Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

option group colour change help 1

Status
Not open for further replies.

jelks

Technical User
Jul 11, 2001
10
0
0
US
Hello experts,

I have a form that has a number of option groups. How do I globally change all option group background colors? I change these colors on data entry. I want to have them reset when a navigation button is clicked (add, next, save, revert, etc). I have tried to associated the color change code on navigation buttons 'cmdPrev' using
WITH This.parent.optiongroup1
.backcolor = rgb(212,208,200)
ENDWITH
I get an error saying it can't find optiongroup1.
I am sure I am just missing something simple.

Any assistance would be most appreciated.

Jason
 
HI
You can put the following code in the appropriate click event of add, next etc.. suitably...

WITH THISFORM
.SetAll("DynamicBackColor", ;
"RGB(212,208,200)","OPTIONGROUP")
ENDWITH

Hope this helps :)
ramani :-9
(Subramanian.G)
FoxAcc
ramani_g@yahoo.com
LET KNOW IF THIS HELPED. ENOUGH EXPERTS ARE HERE TO HELP YOU OUT! BEST OF LUCK :)
 
Thanks ramani. I will try it out on Monday when I get in.

Always helpful information from you. Have a great weekend.

J
 
Minor correction, since OptionGroups don't have a DynamicBackColor property:

WITH THISFORM
.SetAll("BackColor", ;
"RGB(212,208,200)","OPTIONGROUP")
ENDWITH

Rick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top