Results 1 to 7 of 7
  1. #1
    MichaelA is offline Competent Performer
    Windows 10 Access 2013 64bit
    Join Date
    Sep 2019
    Location
    Wisconsin
    Posts
    139

    Is it Possible to Create and Store a Form Format Style Template


    I would like all the forms in my db to have the same look. Is it possible to create something that will store all the info? Background colors, font colors, sizes, I'd like combo boxes to all be sunken and buttons to be raised, etc. Is this possible?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    You can build an UNBOUND form that has controls with desired formatting. Copy form then customize by removing/arranging/modifying controls as appropriate and add
    data and code.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    isladogs's Avatar
    isladogs is offline Access MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    6,204
    As June suggested, you can create a template form with some dummy controls but any new controls you add won't retain the sunken setting automatically.
    You can save other settings for your app in Access options including the use of themes and overlapping windows.

    You can also go one stage further and create an Access template file (accdt) with your desired settings. When you open this, you will immediately be prompted to save as a new ACCDB file so that the template can be reused without being overwritten each time.
    Colin Riddington, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I know I don't know, I keep quiet!

  4. #4
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    Don't remember where I got this from...but you can turn any form you have into a custom AutoForm. From Design View for the form, goto Format AutoFormat and click on "Customize." Now check the radio button for "Create a new AutoFormat based on YourFormName" (the form you want to use as your template.) You'll be asked to give the AutoFormat a name, then you're done.

    Now, anytime you want to use this same formatting for a form, from the Form Wizard select the AutoFormat, or from form Design View go to Format AutoFormat and select the AutoFormat you want to use. And here's the best part, you can do this to a form you've already created using another formatting, and it will change that form's formatting to the newly chosen AutoFormat!

    Linq ;0)>

  5. #5
    Micron is offline Very Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,423
    @MichaelA - you don't say if this is a one time thing or should be permanent. You can alter all the defaults for controls if that's what you're after, but as far as I know, not for form/report sections. Those aren't controls. You'd need to use one of the other suggestions. There is also this

    https://www.accessforums.net/showthread.php?t=58464
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  6. #6
    isladogs's Avatar
    isladogs is offline Access MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    6,204
    I'd forgotten about the settings that linq described and was initially unable to find them in A2010.
    They were I think superceded by Themes in A2010

    I think the autoformat feature dates back to A2003/2007 but is still available in later versions by customising the ribbon

    Click image for larger version. 

Name:	autoformat.PNG 
Views:	13 
Size:	73.3 KB 
ID:	39848

    Its fairly self explanatory though I've hardly ever used it (nor themes for that matter)

    However, you can also definitely set defaults for new forms and reports like this in Access options

    Click image for larger version. 

Name:	template options.PNG 
Views:	18 
Size:	22.5 KB 
ID:	39846

    The default is Normal but can be overwritten. Just choose the form/report you want to use instead
    The effect are
    Click image for larger version. 

Name:	Capture.PNG 
Views:	18 
Size:	16.2 KB 
ID:	39847
    Note that this method does not affect existing forms/reports.

    NOTE: The default settings used are applied to all your Access apps...as long as the form/report in question exists.
    The easiest way is probably to include them by using them in a ACCDT template for all new databases
    Colin Riddington, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I know I don't know, I keep quiet!

  7. #7
    MichaelA is offline Competent Performer
    Windows 10 Access 2013 64bit
    Join Date
    Sep 2019
    Location
    Wisconsin
    Posts
    139
    Thank you all. I don't have time to try these out right now but on my next day off I will give it a try.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. How to create a Matrix style query?
    By Benaal in forum Queries
    Replies: 1
    Last Post: 12-03-2014, 09:02 AM
  2. Replies: 0
    Last Post: 11-19-2014, 05:47 AM
  3. Can SQL be used to create a matrix style report?
    By Harley Guy in forum SQL Server
    Replies: 4
    Last Post: 08-20-2014, 03:00 AM
  4. Formatting form in matrix style Excel format
    By Harley Guy in forum Forms
    Replies: 6
    Last Post: 03-20-2013, 01:56 PM
  5. Replies: 7
    Last Post: 12-10-2012, 06:54 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums