Discussion Locked

coloring tab pages in Access

0 helpful
7 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I have an Access form with 4 tab pages. I can find no property "color" to change, but I want to make the tabs, with the corresponding pages, of 4 different colors. They are grey now, and I see no way of changing that.

7 replies

by sl-campbell

There is no way to change the tab colors with this tab control delivered with Access.
You could create 4 bitmaps that rectangular in form, each with a different color, and add them to the individual tabs' Picture property, but only part of the tab (Left side) is with color and the right side with the text still has a grey backgroung.

by sl-campbell

Expanding on the idea of creating 4 different colored bitmaps another idea came in mind which works for me:
Place the text needed for each tab into these 4 colored bitmaps.
Each bitmap must be the same width.

Then, after assigning each tabs' picture to one of these bitmaps, change the width of all the tabs to a size that reduces the tab width enough to hide the tab name (I used 0.01).
Bingo!

by sl-campbell

You cannot change the tab sheet color. You have two options:
1).You need to draw a rectangle ON each of the tab sheets with the same dimension as the tab sheet, set its' view to Normal (not transparent), under the menu point Format, select 'Send to Background', (or whatever it is called in the english version), and change it's color.
The problem with this is you cannot make the size eaxctly the same as the sheet.

2). This option calls also for a rectangle, but drawn onto the form instead of the tab control. Set its' view to normal, send it to the background and move it UNDER the tab control and fine tune the position and size, or do it on then form load event, capturing the position and size of the tab control, (minus the tab controls' top height).
Make sure the tab controls' view is transparent.
Then, at run time on each tabs' click change the color of the rectangle! (you will need to define a color and set the current tab at first on the form load event because a tab click hasn't happened yet to change to the first color, or do it in design mode - just make sure the same tab is clicked in design mode that you want to show when the form loads or the color may be wrong)

by john_wills

I will not be trying this for a while, but I will keep both ideas in mind for the next time I create a new tab

by john_wills

S. L. Campbell's idea will color the tabs themselves for me, but not the pages. When the user clicks on the red tab, I want her to see a whole tab page, including controls and buttons, with a red background, with the colors of the other tabs showingabove.

This discussion is closed to new replies.