- What are databases how they are structured.
- Brief introduction to the components (tables, queries, forms, reports, macros, modules).
- Starting and closing Access.
- Opening an existing database and being able to save it under a different name and/or in a different file format.
- The layout of the Access program window.
Access is a program from the Microsoft Office package and it allows you to create databases and work with them. And with databases, you can store, manage, and analyze data.
Data includes, for example, detailed information about customers, orders, products, suppliers, etc. These data are saved ordered. This allows you to get answers to questions like
- What was the revenue per customer in the past six months?
- Which articles provide for the bulk of sales?
Access is seen as the most difficult program from the Microsoft Office package. That is caused by the way databases are structured and work. So you can start Excel, PowerPoint, and Word and then immediately entering data. That is not possible in Access. Before you can enter data, you must first invent and create a structure for the database. For larger and more complex databases it will be work for database specialists.
A short introduction to what databases are and how they are structured.
A database is a collection of data relating to a particular subject or a particular purpose. In a database, you can store and track information from various sources, such as:
- Addresses of Customers in an address list
- Telephone numbers of suppliers in a card catalog
- Article data in an file cabinet
- Orders of customers in a folder
All this information is often stored in separate tables that make up the database. In its simplest form, a database table can be consist of only one table. Between the tables, there could be relations, and if so you can link data from different tables together. Such a database is called a relational database.
In addition to creating and maintaining tables, you can also create forms, queries, and reports. With forms, you can update information easily and efficiently. And with queries, you can get answers on questions. Reports ensure that the output will be neatly displayed on screen or paper.
Access has the following components (objects) in a database:
Access stores a database as a single file that contains all components of the database.
There are two different types of work carried out with databases:
Designing the database. This involves the creation of tables, queries, forms, and reports. Once the database is created, this task is done.
Dealing with data. Entering data, updating data, creating reports, searching in the database, etc. This work you are constantly doing.
Data is stored in tables. For each type of data, there is usually a table. So you can have a table Products that contains various information about the products. And a table Suppliers contains information about the companies that supply those products. To know which tables you need for what, you had to think thoroughly in advance about the structure of the database. A well-designed database must meet certain criteria. To get a well-designed database, designers often use a process called normalization.
The data in a table is arranged in columns (fields) and rows (records).
- A field is a category of data, such as company name, contact person, phone number, unit price, …. Each column in a table is a field.
- A record is a collection of data about a person, a product, a company, … Each row in a table is a record.
Through a query, you can give a command to select specific data and display it. It is like you ask a question to the database, e.g. “Which products have a supplier in Australia”. The necessary data to answer the question can come from multiple tables. The query collects the desired information. The result of a query is a set of records, also called a dynaset.
When designing a query, you indicate the data you want. Here you have many options to select only certain data. For example, you can define a query to view order details for a certain period. The query retrieves the data from the various tables. You can also perform calculations in a query, for example calculating totals.
Another type of query is the action query, that operates on the selected records.
If you want to view multiple records, a table view is easy and comfortable. If you want to view individual records or present information with a custom format, then you better use a form.
A form often offers the most convenient way for entering, modifying, and viewing records in a database. In the form design, you specify how the data should be displayed. When you open a form, the required data is retrieved from tables and formatted according to the design of the form. You can also use data from multiple tables and automating tasks with the help of macros or modules.
In forms, you can add pick lists of values to choose from, you can highlight important information with color and you can display a message if you enter an incorrect value. Furthermore, forms allow you to fill in data automatically and you can show calculation results. And with one mouse click, you can switch from form view to datasheet view, a table-like view of the same set of records.
With a report, you can present data on paper or screen, together with totals and grand totals of a whole set of records.
The elements of a form or report with which you display data are called controls. With controls, you can show field data, calculation results, text, charts, … You can also create labels with reports.
The elements of a form or report that cause data to be displayed or printed are called controls. Examples of controls include buttons, list boxes, and check boxes.
Controls allow you to display things like: data in a field, the results of a calculation, words for a title or message, a chart or figure, or any other object, even another form or report.
A macro is a collection of one or more actions, such as the opening of a Form or the printing of a report. With macros, you can automate common tasks. You can use macros in different places. For example, you can connect a macro with a form, report, control, key, or in a menu. You don’t have to need programming knowledge for creating macros.
Instructions on how to start Access.
The possibilities to start Access depend on the way the system is installed. This course assumes a default installation of Microsoft 365 English on a system with Windows 10 English. On almost all computers Access can be started through the start button of Windows and this method is described here.
Choose Start > Access 2016.
The initial screen of Access is displayed. In the left part (under Recent) are the last opened files and the right part contains some available templates for creating new databases.
To close a database choose File > Close.
To close Access itself click on the close button of the program window. This is a button marked with X in the upper right corner of the window.
Unlike most other programs you don’t need to save a database in Access. All changes made are automatically saved.
Commonly used methods for opening an existing Access database are:
- Double click an Access file in the Windows explorer.
- Click in the initial screen of Access on a recently used file or choose Open Other Files.
- When Access is already open choose File > Open.
Open the practice file candy365.accdb by one of the methods mentioned above.
The screen of Access exists from top to bottom from a part to control the program, the documents area, and the status bar.
- This button is in the upper left corner of the program window. Under this button are some basic commands that are found in all Office programs such as opening, saving, and printing files. Also included is the important command Options, with which you can set some settings for Access.
- Quick Access Toolbar
- The Quick Access Toolbar is a customizable toolbar for shortcuts to frequently used features and commands. It is also where you can add the shortcuts to Access features that are not available on the ribbon. The default installation has three shortcuts:
- - Save
- - Undo
- - Redo
- The ribbon is a panel, a wide toolbar at the upper side of the program window. The commands on the ribbon are organized in logical groups and collected together under tabs like Start, Create … Each tab has a specific task that it performs. Some tabs, so-called contextual tabs, are only displayed when they are needed. An example is the tab Table, that only appears when a table is opened. Furthermore, the commands you will need often are on the left and the most specialized commands are on the right.
There is no way to delete the ribbon, but you can minimize it through the keyboard shortcut CTRL + F1. Then you see only the tabs. Pressing this shortcut again restores the ribbon.
- At the upper side of the ribbon are tabs. On each tab, there are groups of commands. Some tabs are only displayed when they are needed.
- On each tab, there are groups of related commands. A group contains all the necessary commands for a particular task. Not all the commands of a group are mostly visible. When you want to see more options for the group you should click on the arrow in the bottom right corner of the group.
- Command button
- When you click on a command button then usually the change takes effect immediately. It is also possible that a choice list or a dialog box appears first.
- Navigation Pane
- The navigation pane is on the left and here you can find all database objects.
- Document window
- When an object is opened it will appear in a separate document window.
Before creating a new database you should mostly do a thorough information analysis, followed by a normalization process. Then the structure of the database is determined and you know which tables with which fields should be created. Therefore, creating a new database is not a subject in this course. When you know what has to be created, the creation of the database is not so difficult. Hereafter a few guidelines on how you might proceed.
The starting point is the initial screen of Access. In the left part (under Recent) are the last opened files and the right part contains some available templates for creating new databases.
First, you can instruct Access to create a new empty database by clicking on the template Blank database. In the following screen, you must specify the name and storage location of the new database. Then Access creates this database with a new empty table. Creating Tables is discussed later in this course.
Access provides many templates for common types of databases, see the buttons on the start-up screen. When the newly created database comes close to one of these templates you can use this template. When clicking on a template, a database including tables with fields and mostly some queries, forms, and reports are created. Then you can adjust the designs. This is sometimes convenient and faster than manually start from scratch.
Sometimes it may be desirable to have multiple versions of a file. In that case, you can use Save As to save the file with a new name. And if you want to save the file in an older Access format you can also use Save As.
In this course, a database with the name candy365.accdb will be used. Because all changes you make will be saved immediately without asking, you soon won’t have the original database. It is therefore recommended to start with making a copy of the original database candy365.accdb, before you are going to work with this database. You can do that at the file level with the Windows explorer, but you can also use the Save As command in Access.
Open database candy365.accdb.
Choose File > Save As.
Select Access Database (*.accdband) click Save As.
Browse in the dialog window to the storage location, specify the name of the new file, and click Save.
A backup is nothing more than a copy of a database that you have created at a certain moment. In fact, it is the same process as with the Save As command. Nevertheless, Access provides in a Backup function.
Choose File > Save As. Select in the window Back Up Database and click Save As. Afterthat, you can specify the storage location and file name. Default, the proposed name is the name of the original database file supplemented with the current date.
When you restore data or objects from a backup, you want to know which database the backup came from and when the backup was created. Therefore, it is usually a good idea to use the proposed default file name.
An overview of the new and old file formats of Access.
- This is the default format for files created with Access 2007, 2010, 2013 and 2016. Because the file formats are the same, you can for example open a database in Access 2007 that was created with Access 2016. However, new features that are not available in the older versions will not work. This can cause problems.
- This is the format for files created with Access 2003 and earlier. Such a file can be opened by Access 2007, 2010, 2013 and 2016. And Access 2016 can also store a database in this older file format.