We help IT Professionals succeed at work.
Get Started

Use VBA color selector and pass value to control on report

htamraz1
htamraz1 asked
on
1,662 Views
Last Modified: 2016-02-10
I have a report with a header that different people will access using a form where they select their criteria then preview.

Different users need to distinguish their report by assigning a different color to the "Back Color" property of the header control called "CtrlHeader".

I don't want to hard code the "Back Color" values (e.g. #00B7EF), but would like the user to select a color from a palette of some sort (Windows or Access color picker), store the value they select (e.g. #00B7EF) and pass it along to the "Back Color" property of the header control "CtrlHeader".

So,

Step 1 - add control on form to allow user to select color.
Step 2 - open report and pass previously selected color value to back color property of control

Thoughts?

Thank you.
Comment
Watch Question
MIS Liason
CERTIFIED EXPERT
Most Valuable Expert 2012
Commented:
This problem has been solved!
Unlock 1 Answer and 11 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE