Link to home
Start Free TrialLog in
Avatar of João serras-pereira
João serras-pereiraFlag for Portugal

asked on

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?
SOLUTION
Avatar of mbizup
mbizup
Flag of Kazakhstan image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of João serras-pereira

ASKER

Hi!
I have tried both solutions. Norie's matched perfectly. Mbizup, was an approach but gave an olive freen...
For colour codes and their usage and conversion in VBA:

Create Windows Phone Colour Palette and Selector using WithEvents
Thanks!