ACCDT Template
By Richard Rost
2 years ago
Create ACCDT Template in Access for Distribution
In this Microsoft Access tutorial, I will show you how to create and distribute an ACCDT template, allowing for seamless sharing and consistency across your databases. Whether you're an Access enthusiast or a professional developer, this expert-level guide requires no VBA programming and will simplify your workflow.
Cedric from Bellevue, Nebraska (a Platinum Member) asks: I watched your videos on creating default templates for both Word and Excel. Can you do something similar with Microsoft Access?
Members
There is no extended cut, but here is the database download:
Silver Members and up get access to view Extended Cut videos, when available. Gold Members can download the files from class plus get access to the Code Vault. If you're not a member, Join Today!
Prerequisites
Recommended Courses
Keywords
TechHelp Access, ACCDT template creation, database distribution, customize Microsoft Access, template save as ACCDT, application parts in Access, Access expert-level tutorial, Access database setup, ACCDB file creation, global module VBA code.
Subscribe to ACCDT Template
Get notifications when this page is updated
Intro In this video, we'll talk about how to create and use an ACCDT template to easily distribute and share your Microsoft Access database. I'll show you step by step how to set up your database as a template, adjust the template options like description and icon, save it to the correct folder, and create new databases from your custom template. You'll learn when and why using an Access template makes sense and how to share your template with others.Transcript Today we're going to talk about how to create an ACCDT template so that you can easily distribute and share your Microsoft Access database. I'm going to put this one down as an expert-level video, which is between beginner and developer. It's a little bit past the stage of what beginners might need to do, but we're not going to need any VBA programming today. So as long as you've got a little bit of Access under your belt, you'll be fine with this one.
Today's question comes from Cedric in Bellevue, Nebraska, one of my Platinum members. Cedric says, "I watched your videos on creating default templates for both Word and Excel. Can you do something similar with Microsoft Access?" Well, kind of yes and kind of no. Let me explain.
So, what Cedric is talking about, if you haven't seen them, two days ago I did a video on creating default templates for Microsoft Word. And so this is so you can set your font, your margins, your font size, all those little things, so every time you create a new Word document, you don't have to keep resetting all that stuff. Right, like the new Calibri font that was just added to Office as the default, and a lot of people don't like it. So I can show you how you can go back to Times New Roman or Courier, or whatever other font you want. So, watch that video if you want to learn more about that.
And then of course yesterday's video was doing the same thing with Excel, which is a little more involved but not difficult. So again, you can have a default document or default workbook for Word and Excel. There's no like, "this will always be your default setting." But what you can do is you can set up templates that have all of your preferred default settings in them, and then those can be used for creating new databases.
Now personally, for me, I never really go through the hassle of setting up an actual template in Access, you know, that's an ACCDT file. I just make a normal database, right, a .MDB file that's got, you know, all the things that I like to put in new databases that I create, the same objects that I use, a main menu, most databases have a customer form, a customer list, whatever VBA code you like to have in any database that you make, put that in a global module. And I just make a regular normal Access database file and then I'll just copy and paste it and work off of that. That's what I do. I've been doing it for 30 years. It works fine for me.
And besides, with Access, unless you're someone like me where I'm teaching and I'm, you know, like every day I'm making a new database to show you guys something different. It's rare to create new databases, whereas with Word and Excel, you might be creating lots of new documents or lots of new spreadsheets every day for this or that or whatever. Access isn't usually like that. Usually, you set up your database once and then you work with it for a while, and you don't make another new one that often, unless you're a developer and doing it for clients and that kind of stuff. So the real need to make templates isn't quite there for Access like it is for Word and Excel.
Now, I did have a situation a few years back where I helped an accountant build a database. Well, I basically built a database with his direction for what he wanted. That's the beauty of Access. You can customize it however you want. And he wanted to set up a database that he could then share with his client that he was doing taxes for or whatever. He wanted to make a template so that he could fill in the customer's information, put all of their data in that database. Then the next time he got a client, he'd create a new database, and he wanted a template so he could easily do that. Of course, I tried talking him out of doing that. I said it's much, much easier from a development standpoint to put all of your clients together in the same database. Then, if you just want to peel off their information, we could export them, you know, Excel spreadsheets or whatever. He's like, "no, no, no, no, no. He's like, no, this is how I want to do it." I argued. I lost because at the end of the day, the client is right when it comes to what they want. It might not be the best thing developmentally, but okay, I let him win.
So I set him up with a template so he could just open up Access, pick the template, and then he'd get a new blank database that he could then just populate with that client's information. And then he can send that database to them when they wanted to see a copy of their records. Of course, once you've got 20, 30 of those databases, and you want to make a design change to a form, then you've got to copy that form to all of those. That's what I tried to tell him in the first place, and he didn't listen to me. But okay.
But anyways, there are some instances where you might want to be able to use templates like this. Also, if you want to be able to share your database with other people. And I'm finally happy, by the way, that ChatGPT finally is getting the right number of fingers on images. And is it just me, or does that guy kind of look like Jeff Goldblum, like a young Jeff Goldblum, like Jurassic Park Jeff Goldblum, or maybe Independence Day? I don't know. Doesn't have quite the same hair, though. Yes, no, maybe? A little bit? I don't know. Okay. Anyways.
Alright. So let's say you've got a database that you want to be able to share or make a template out of. So here's my basic TechHelp free template. This is a free database. You can grab a copy of this off my website if you really want to. Let's open this sucker up.
Now take out anything that you don't want in here that you don't want to be able to share or have in your template. I'm just going to leave it as it is. Don't worry about taking the data out of it because when you create the template file, there's an option to either include the data that's in here or not. If you get a situation where you need some helper data table like you get a list of states in here or name prefixes or that, you want that, then you have to manually delete the stuff out of the tables that you don't want shared, so you have to delete your customers and orders and stuff like that. It is an all-or-nothing proposition.
Alright, so we're going to take this and we're going to save it as a template file. Save as. Right there. Template. ACCDT. Save as. This guy comes up. What do you want to call it? Let's call it RICS Test TechHelp Template ACCDT thingy. Whatever you want to call it. That's what's going to show up in your template list. You want a description in here? Whatever. Tell people about your template. Right? Okay. Category. You can set up different categories if you want to. There's one default one, user templates. Just leave it in there. That's fine. Icon. If you want to give it a custom icon, click this little guy right there. Browse to wherever your icons are. Pick what you want. Hit open. There it goes. That's what you'll see in the template listing. If you want a preview of it, a more in-depth image that shows up in like the template store, again, browse for it right there. Pick your image. Okay, there it is.
Alright, now primary table, this is if you're doing something called Application Parts. We'll talk about those in tomorrow's video. And the instantiation form is the form to open by default in databases created by the template. Tell it if you want to start up for a, if you want to have a custom form of instructions pop up, you can pick one of your forms in here. I'm not going to bother with that right now. They have a main menu that will open. You could put instructions on that if you really want to.
Alright, here's the option to include all data in the package. If you don't check this, by default, you'll get no data. It will empty out all of your tables. Okay, I'm going to turn that off so we get an empty database. And then we'll hit okay.
There are options here for sharing your template with the community where you can submit it to be, you know, in the Microsoft store or whatever they've got. I honestly have never done this, so I don't know much about it. Google it. If enough of you are curious, let me know. I'll do some research and figure out what's involved there. I actually have a couple of templates myself. I've been thinking about submitting. So this might be something I'm going to look into in the future. Anyways, if you guys know anything about this, post some comments down below. Teach me. Tell me some stuff. Alright. Hit okay.
Alright. The template's been created, and it doesn't give you an option of where you want to put it. It puts it here. See users and so it's in your user AppData Roaming Microsoft Templates Access folder. So if you want to share this with other people, you've got to go find that folder. Which is kind of a pain. They should say, "Hey, where do you want to put it?" But this is the place that Access looks for your templates. I'll show you in just a second.
Alright, there it took me an hour off camera to navigate to C:\\Users\\Amicron\\Divided\\Why Microsoft Why? Why do you bury it like that? I was aside for a minute. I'll come back to that. I had... Okay, we're done with this. Kind. Close it. That's your original database.
Now we're just going to open up Access. Don't open this guy, just open up Access by the Access logo. Open up. There we go. You see some of the templates I was playing with earlier. Here ignore these, uh... but go over here to more templates. Or "Template," and play with the Northwind databases. By the by, now the play of the spring called the video on his well back. More templates'you still don't see your template. Click on Personal. There you go. And yes, what happened when I set this up for my accountant client? Actually, put his picture on the template'he loved it, though. He thought it was awesome.
Alright, click on that. There you go. Now, pick where you want it to go. By default, it's going to go in your User Documents folder. I'm just going to drop it on my desktop. So click here. Browse to where you want it to go. I'll go to the desktop, give it a good name, New Accounting DB, or whatever. It's going to create an .ACCDB file out of that template. Hit okay. And then hit Create. It's going to do its thing, it's preparing a template.
And there you go. You have a blank database at that location. In fact, let me see, oh, there it is on my desktop. Let me bring it up. It was on my other monitor. Okay. And you'll notice all your tables are empty. See? Okay, so I can close that. I got a brand new copy of the database, and again, it moved it. I've got two monitors on my desk, and of course, every time I change is made to one of those databases, it snaps back down on my primary monitor. I hate that.
Now the reason why I browse to this guy was because if you want to send this to your customers, for example, so they can make brand new blank databases off of your template, you can zip this up and send it to them. If they have Access, they can open it'just make sure to tell them that they need to run it from a trusted folder, a trusted location. Alright, if you need to know about that, I got a video for that too, of course. I got videos for everything, right?
And of course, if you want to learn more about Access, come to my website. Check it out. I got Access lessons for all levels'beginner, expert, advanced'advanced covers macros and stuff, developer lessons. I got all kinds of seminars and templates, and you name it, I got it. So if you want to learn Access, you've found the right guy. If you like my style, come on down. You're the next contestant, all that good stuff.
So, that's going to be your TechHelp video for today. Tomorrow, we're going to talk about Application Parts, and that's where, instead of a whole database, let's say you've got just certain objects that you want to be able to include in new databases. So let's say your customer stuff, the customer table, the customer forms, any queries that are related, any reports that are related, you can create what's called an application part, which is a bundle of those things. So if you do build a new database, and then you're like, "Oh, you know what? I kind of need my customer stuff." You can just pick the part, and it drops those things into your database instead of having to do it manually all the time. So we'll talk about that tomorrow. But again, that's your TechHelp video for today. I hope you learned something, my friends. Live long and prosper. I'll see you tomorrow.Quiz (Q1) What is the difficulty level of the video tutorial on creating an ACCDT template? (A) Beginner (B) Intermediate (C) Expert (D) Developer
(Q2) What was the main request from Cedric in Bellevue, Nebraska? (A) To create VBA programming for Access (B) To set up a default template for Access (C) To learn how to distribute and share Excel spreadsheets (D) To customize the Access ribbon
(Q3) Which file format is used to save an Access template? (A) .ACCDB (B) .MDB (C) .ACCDT (D) .XLSX
(Q4) What was the purpose of creating a template for the accountant discussed in the video? (A) To track his daily expenses conveniently (B) To generate automated tax calculations (C) To share customized databases with clients (D) To integrate his database with a web server
(Q5) Where does Microsoft Access save the ACCDT template by default on your computer? (A) In the Documents folder (B) On the Desktop (C) In the AppData Roaming Microsoft Templates Access folder (D) In the Public folder
(Q6) What must be done if you want a template to come without any data? (A) Choose to include all data in the package (B) Select the option to remove all data upon save (C) Leave the 'include all data in the package' option unchecked (D) Manually empty each table after saving the template
(Q7) What is the main menu called in Access that allows you to add an instantiation form? (A) Application Parts (B) Quick Access Toolbar (C) Ribbon Customization (D) Template Options
(Q8) What must users ensure when they are running a template from another source? (A) They should be online (B) They should run it from a trusted location (C) They should have the latest version of Access (D) They should open it as an administrator
(Q9) What is an application part in Access? (A) A database recovery tool (B) A full feature of Access security (C) A bundle of related database objects (D) An automatic backup system
(Q10) In the video, what does the instructor compare the appearance of the ChatGPT's finger count correction to? (A) A young Leonardo DiCaprio (B) Jeff Goldblum from Jurassic Park (C) Tom Hanks from Cast Away (D) Brad Pitt from Fight Club
Answers: 1-C; 2-B; 3-C; 4-C; 5-C; 6-C; 7-A; 8-B; 9-C; 10-B;
DISCLAIMER: Quiz questions are AI generated. If you find any that are wrong, don't make sense, or aren't related to the video topic at hand, then please post a comment and let me know. Thanks.Summary Today's TechHelp tutorial from Access Learning Zone focuses on how to create an ACCDT template in Microsoft Access, which makes it much easier to distribute and share your database with others. I consider this an expert-level topic, which falls somewhere between beginner and full developer. You do not need any VBA experience for today's lesson, but you should be comfortable working with Access.
I took some inspiration for today's session from a question about Access templates similar to those in Word and Excel. As you may know, with those two programs, you can set up your own default templates. For Word, that might mean setting your preferred font or margin sizes, and the same goes for Excel with its default workbook and worksheet templates. While Access isn't quite as template-friendly by default, you can definitely set up something similar with ACCDT files.
I want to be clear, though, that in my own workflow, I typically don't create specialized template files in Access. Instead, I keep a standard database with the settings, forms, objects, and VBA code I like to use. Whenever I start a new project, I simply make a copy of that file and go from there. In my experience, people don't create new Access databases daily like they might do with Word documents or Excel workbooks. For most Access users, you generally set up a database once and work in it over a longer period. Still, there are use cases, especially when distributing a blank or partially built database to others, where templates are helpful.
For example, I worked with an accountant who needed to provide each of his clients with an individual copy of the same database, so he wanted a template that he could use to generate a blank file for every new client. Even though I suggested that putting all clients in a single database would be far easier to manage, the client had a strong preference for separate files, and ultimately the client's requirements won out.
The first step to creating an Access template is to build your database with all the forms, tables, reports, or code you might want to reuse. If you have any information or data you do not want to end up in every new file that users make from your template, be sure to remove that before you continue. Keep in mind that the template creation process will allow you to choose if you want to include your table data or not, but you can't mix and match table-by-table - it is all or nothing.
Once your database is set up the way you like, save it as a template. There is a specific option to save your database as an ACCDT file. During this process, you will be prompted to give your template a name, a description, and even assign it to a category if you like. You can also provide a custom icon and a preview image, which is what users will see when selecting your template from the Access start screen. There is an option to specify which form will open by default when someone creates a new database from your template, which can be handy for offering instructions or a welcome message.
Crucially, there is a checkbox to include all data in the template. If you leave this unchecked, all tables in new databases created from the template will be empty by default. This is usually what you want unless you have some helper tables, such as a list of U.S. states or name prefixes, which need to be carried over.
If you are interested in sharing your template more widely, there are some features to submit it to the broader community or even the Microsoft store, though I personally have not explored these options in depth. If you have experience with that or want me to look into it further, let me know.
Once you save your template, you might notice that Access does not ask you where to put it. It is automatically saved in a specific folder on your PC: your User's AppData roaming Microsoft Templates Access directory. This is also the location Access checks for available templates. It is a bit frustrating that this folder is buried several layers deep, but that is where you will need to go if you want to share your template file with others - just copy the ACCDT file from there.
To use your new template, just start Access (not the database itself, but the Access program). When you go to create a new database, select the Personal tab under templates, and you'll see your custom template there. Pick where you want to save the new database, give it a name, and Access will generate a new blank database based on your template. All the structures and objects you put in the template will be present, but the tables will be empty unless you chose to include the data.
If you plan to distribute this template to clients or colleagues, zip the ACCDT file and send it along. Remind them to run the database from a trusted location, which helps with security and avoids unnecessary warnings.
On my website, you can find Access lessons for all skill levels, as well as seminars, templates, and all sorts of resources to help you get the most out of the program. If you enjoy learning this way, be sure to check those out.
That wraps up today's TechHelp tutorial on creating Access templates. In my next session, I'll cover Application Parts, which allow you to bundle a grouping of related objects, such as customers tables and forms, so you can import that whole set into any database you're building, instead of doing it piece by piece. Stay tuned for that lesson.
You can find a complete video tutorial with step-by-step instructions on everything discussed here on my website at the link below. Live long and prosper, my friends.Topic List Saving an Access database as an ACCDT template
Configuring template name, description, and category
Adding custom icons and preview images to templates
Setting a default startup form for the template
Choosing to include or exclude table data in the template
Locating the default Access templates folder on Windows
Using Personal templates in the Access template gallery
Creating a new database from a custom template
Distributing an ACCDT template to other users
Ensuring databases from templates are run from trusted locations
|