border color is set to wrong colour in ms/access text control

Hi -
On my app, in MS/Access 2016, I try to programmatically change the color of a text control. The colour I want is a dar yellow that, both n photoshop or when  I define the color in the properties pane, is #EEB000, so I set the following code:

   
Me.frm_nome.BorderWidth = 3
    Me.frm_nome.BorderColor = &HEEB000

Open in new window


However, instead of the yellow I am always getting a blue.

can anyone help?
João serras-pereiraAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mbizupCommented:
I've had issues with the hex codes as well.  Try using RGB colors instead:
 Me.frm_nome.BorderColor =  RGB(155,135,12) 

Open in new window


(You can use an online color chart to pinpoint the exact color you want)
0
NorieData ProcessorCommented:
Try this.
    Me.frm_nome.BorderColor = RGB(&HEE, &HB0, 0)

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
João serras-pereiraAuthor Commented:
Hi!
I have tried both solutions. Norie's matched perfectly. Mbizup, was an approach but gave an olive freen...
0
Gustav BrockCIOCommented:
For colour codes and their usage and conversion in VBA:

Create Windows Phone Colour Palette and Selector using WithEvents
0
João serras-pereiraAuthor Commented:
Thanks!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.