Can't get a Black 1pt or 2pt border around a rectangle.

Mike Krailo

Well-known member
Local time
Today, 03:40
Joined
Mar 28, 2020
Messages
1,339
This is a strange problem that I just ran into. I have M365 and as you can see in the pic, there are two blue rectangles. The top one has a 2pt black border property but it is not black at all! The bottom one is 3pt black border and it shows black color just fine. Is this a new bug? I attached the database with single form for others to look at on their system to see if it's doing the same thing.
1596402239297.png
 

Attachments

Have noticed this before. If you use a palette colour rather than a theme colour, I think you will find that it works as expected. I have no idea why.
EDIT -forgot to say that I think you will have to use something other than black (#000000).
Try #000010 or even #000001
 
Confirm your findings.
Also created my own test database with the same result.
However if you change the back colour to white or use raised/sunken as special effect instead of flat, it then works correctly

EDIT: It didn't work correctly for me using a palette colour
 
Isladogs, it did work for me using palette color #000010 as Micron suggested. So this is just a bug to be aware of I guess. It worked with #000001 as well which is as close to black as your going to get.
 
I had the same problem and found your solution here.

I was setting the border on a subform control on a parent form.

I was able to use the "Text Black" selection as the border color. I don't know if this is true black or not, but it worked!
1729720115855.png
 
I've seen this, too, as far back as 2014 or so. By experiment at the time, I satisfied myself that it is a mathematical interaction of some kind with your screen resolution setting. As noted by @Mike Krailo, I was able to fix it by making the border 3 twips instead of 2 with the "default" screen resolution. But you can get other similar anomalies with different widths by playing with your hardware video resolution.
 
For info, I alerted the Access team about this bug yesterday. Although its fairly unimportant as bugs go, perhaps it will be easy for them to fix

Anyway, former MVP Anders Ebro was initially unable to replicate my findings. On further testing, it turns out this is a Themes bug.
If you untick 'Use Windows-themed Controls on Forms in Access Options, the pure black border widths then behave perfectly
 

Attachments

Users who are viewing this thread

Back
Top Bottom