问题
I upgraded an access 97 application to access 2010
When I create a new form, there's like a master design that I can apply on every forms with 1 click. This feature doesn't work on my old forms (Nothing change).

I tried to start with a blank database and import everything. Now the forms are a bit better looking cause the button are rounded and the font is better but I still can't change the labels background with the master design.
The color is like hard coded in the properties for every labels. I can select them all and change it but I will have to do it for every forms. Is there a way I can use a master design with my old forms?
Thank you.
回答1:
Theme fore colors are applied to labels using the following properties:
ForeThemeColorIndex
ForeTint
ForeShade
As near as I can tell, when you import a form from a different database where themes were not applied, the ForeThemeColorIndex value will be set to -1 for some controls. This basically tells Access that these controls have a color that's "hard coded" (though not in VBA).
I'm thinking the only way to fix this problem is to use VBA to open each form in design view, loop through all of the form's controls, and if the control is a label control (or any other control you're having trouble with), apply your theme colors using the correct theme-related properties. Once you've set the control to use theme colors, changing or applying themes should work without a hitch.
Here's a list of these properties. This is not necessarily comprehensive. I just pulled this using a basic loop looking at properties for a label control. These properties are the same for textbox controls. This list is with theme colors applied successfully to my label control named lblLastName:
lblLastName: BackThemeColorIndex=1
lblLastName: BackTint=100
lblLastName: BackShade=100
lblLastName: BorderThemeColorIndex=0
lblLastName: BorderTint=50
lblLastName: BorderShade=100
lblLastName: ThemeFontIndex=1
lblLastName: ForeThemeColorIndex=0
lblLastName: ForeTint=75
lblLastName: ForeShade=100
lblLastName: GridlineThemeColorIndex=1
lblLastName: GridlineTint=100
lblLastName: GridlineShade=65
Here's a link to some of Microsoft's Documentation on this: http://msdn.microsoft.com/en-us/library/office/ff195247.aspx
回答2:
Try opening up the form in design mode, then hit ctrl-a to select all objects. Then from ribbon on the design tab simply click on the themes and choose a theme as your picture shows.
Keep in mind that the option will be disabled if you are using an mdb, so you will have to be using the newer accDB format for this option to be available.
回答3:
One way around this is to add the (old) AutoFormat command to the Quick Access tool bar. While it doesn't add the Themes functionality to a form, it is a quick way to reformat forms in a fairly quick and consistent manner.
来源:https://stackoverflow.com/questions/13124482/is-there-a-way-to-apply-theme-on-converted-access-97-form