30

Microsoft Access 2016 · Microsoft Access 2016 allows you to create and modify databases through its Custom Web App. The data and database objects of an Access app are stored in either

  • Upload
    others

  • View
    3

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Microsoft Access 2016 · Microsoft Access 2016 allows you to create and modify databases through its Custom Web App. The data and database objects of an Access app are stored in either

Microsoft Access 2016

Building Access Database for the Web

Page 2: Microsoft Access 2016 · Microsoft Access 2016 allows you to create and modify databases through its Custom Web App. The data and database objects of an Access app are stored in either

Welcome to Microsoft Access 2016

Thank you for your purchase and commitment to learn and master the tools and features of

Microsoft Access 2016.

This comprehensive user guide covers the essential objects, techniques and concepts to get

you started in the best possible way that I know and have taught to my many students over

the years.

There are two ways you could use this reference guide. It can be used as a general reference

guide jumping between sections in any suitable order to fill any gaps in your knowledge and

establish an understanding as taught in my training courses or if you’re a complete new

beginner then simply start from the beginning and read the whole guide first and then go

over each section again applying the examples shown to help manage and build a database

application.

At first glance, learning about Microsoft Access may be deemed as a steep learning curve

but by using the examples and understanding the theories covered in this guide, I aim to

flatten that curve to the easiest and painless way possible.

At the end of day, it will require your investment of time and perseverance and having a

open and positive mind set as at times it may seem all too much to take in. If this happens,

take a break, go for a walk, do something else for a few hours and then revisit this at a later

point

It will sink in, I promise!

All the examples used in this user guide can be tested with sample data which is available in

the box below:

FREE TO DOWNLOAD

If you require some sample data to test the techniques and illustrations as shown in this

document, you can go and download my sample Access database file consisting of six

potentially related tables which these examples are all based on.

Sample Access Database File (ACCDB Format) - Zip File (http://benbeitler.com/Order%20Processing%20Data%202016.zip)

DISCLAIMER OF WARRANTIES/DAMAGES

All software data files is provided ”as-is,” without any express or implied warranty.

In no event shall the author be held liable for any damages arising from the use of this software.

The user must assume the entire risk of using the software.

PLEASE DO NOT DOWNLOAD UNLESS YOU HAVE AGREED TO THIS DISCLAIMER.

Page 3: Microsoft Access 2016 · Microsoft Access 2016 allows you to create and modify databases through its Custom Web App. The data and database objects of an Access app are stored in either

I hope you find this user guide of value and welcome your comments on ways this user

manual could be improved or if you wish to get in contact with me, please do so at

[email protected]

Once again, many thanks for your commitment – enjoy!

Disclaimer

The information provided within this eBook is for general informational purposes only. While we try to keep the information up-to-date and correct, there are no representations or warranties, express or implied, about the completeness, accuracy, reliability, suitability or availability with respect to the information, products, services, or related graphics contained in this eBook for any purpose. Any use of this information is at your own risk. DISCLAIMER OF WARRANTIES/DAMAGES All software data files is provided ”as-is,” without any express or implied warranty. In no event shall the author be held liable for any damages arising from the use of this software. The user must assume the entire risk of using the software. PLEASE DO NOT DOWNLOAD UNLESS YOU HAVE AGREED TO THIS DISCLAIMER.

No part of this publication may be reproduced, stored in a retrieval system or transmitted in any form or by any means, electronic, mechanical, photocopying, recording, scanning or otherwise without the prior written permission of the author Ben Beitler ([email protected]) or his company; Access Database Tutorial © 2016 https://www.accessdatabasetutorial.com/

Page 4: Microsoft Access 2016 · Microsoft Access 2016 allows you to create and modify databases through its Custom Web App. The data and database objects of an Access app are stored in either

CONTENTS

CREATING A CUSTOM WEB APP ......................................................................................... 1

What is SharePoint?........................................................................................................................................... 1

Create a SharePoint Database?.......................................................................................................................... 1 Adding A Predefined Table ............................................................................................................................. 2 Adding A Blank Table ...................................................................................................................................... 3 Launching a Web App ..................................................................................................................................... 4 The List View .................................................................................................................................................. 5 The Datasheet View ....................................................................................................................................... 6 The Summary View ........................................................................................................................................ 7

Navigating to the Team Site ............................................................................................................................... 8

Creating a Web App Using a Template .............................................................................................................. 9

Modifying A Web App ...................................................................................................................................... 10 Importing an Access Desktop Database ........................................................................................................ 10 Changing The Design of a Table .................................................................................................................... 12

Creating a Lookup/Relationship ...................................................................................................................... 13 Create a lookup ............................................................................................................................................ 13

Designing with a List Details view .................................................................................................................... 14 Creating a List Details view ........................................................................................................................... 15 Removing fields ............................................................................................................................................ 16 Adding fields ................................................................................................................................................ 16

Designing with a Datasheet View .................................................................................................................... 17 Create a Datasheet view............................................................................................................................... 17 Format a field ............................................................................................................................................... 17

Designing with a Summary View ..................................................................................................................... 18 Creating a Summary view ............................................................................................................................. 18

Designing with a Blank View ............................................................................................................................ 19 Creating a Blank view ................................................................................................................................... 19

Open, Rename, Duplicate, Or Delete a View ................................................................................................... 20 Changing a table design when editing a view ............................................................................................... 20

Creating a Query .............................................................................................................................................. 21 Creating a query ........................................................................................................................................... 21

Modifying the Table Selector ........................................................................................................................... 22 Modifying the Table Selector to hide or show a table ................................................................................... 22 Changing a table icon ................................................................................................................................... 23

Page 5: Microsoft Access 2016 · Microsoft Access 2016 allows you to create and modify databases through its Custom Web App. The data and database objects of an Access app are stored in either

Working with Reports ...................................................................................................................................... 23 Creating a report database ........................................................................................................................... 24

Page 6: Microsoft Access 2016 · Microsoft Access 2016 allows you to create and modify databases through its Custom Web App. The data and database objects of an Access app are stored in either

A c c e s s D a t a b a s e T u t o r i a l – M i c r o s o f t A c c e s s 2 0 1 6 f o r t h e W e b

https://accessdatabasetutorial.com/ 1

Creating a Custom Web App

Microsoft Access 2016 allows you to create and modify databases through its Custom Web

App. The data and database objects of an Access app are stored in either in a SQL Server or

Microsoft Azure SQL Database, so you can share the data within your organisation using the

on-site SharePoint 2016 or Office 365 for business.

When you create a web app from the Access start screen, the first thing that you need to do

is to choose a web location for the app. The web location or SharePoint, is the site users will

go to when they want to use the app.

What is SharePoint?

SharePoint is a location on the web that is used as a secure place to store, organise, share,

and access information from almost any device. You can access it through a web browser

such as Internet Explorer, Chrome, or Firefox. Companies and other institutions use

SharePoint to create websites.

Create a SharePoint Database?

When you already have configured your SharePoint, you can now begin creating your

custom Access application. Follow the steps below:

1. Open Access 2016 and click

Custom web app.

2. Type the application name in the

App Name text box.

3. Enter the URL for your Office 365

domain in the Web Location

textbox, or select your Team Site

from the Available Locations list.

4. Click Create.

Continues/…

Page 7: Microsoft Access 2016 · Microsoft Access 2016 allows you to create and modify databases through its Custom Web App. The data and database objects of an Access app are stored in either

A c c e s s D a t a b a s e T u t o r i a l – M i c r o s o f t A c c e s s 2 0 1 6 f o r t h e W e b

https://accessdatabasetutorial.com/ 2

To check your server location or database name, click the File tab > Info.

IMPORTANT: Before you can create an Access web app, you must have a SharePoint site where you can host the app. You

can get it through an Office 365 subscription that includes sites or an on-premises SharePoint deployment. Access apps

don’t work with Office 365 Home.

Then you will need some tables in your new application. You can either add already existing

tables that are like templates, which in some cases include ready-made related tables, or

you can start from scratch with blank tables.

Adding A Predefined Table

1. In the Search box, enter what kind of information you’ll be storing — tasks, people

or items.

2. Click the Search button and select a suitable table from the provided list.

TIP: Type All into the Search box to view all template options.

If the template has related tables, you’ll see the multi-table icon. For instance, when you

add the Assets table, Access also adds the related Employees table.

Page 8: Microsoft Access 2016 · Microsoft Access 2016 allows you to create and modify databases through its Custom Web App. The data and database objects of an Access app are stored in either

A c c e s s D a t a b a s e T u t o r i a l – M i c r o s o f t A c c e s s 2 0 1 6 f o r t h e W e b

https://accessdatabasetutorial.com/ 3

Adding A Blank Table

1. From the ribbon bar, click the Home tab > Add A New Blank Table.

2. Select a suitable data type for each new field name.

3. Change any appropriate properties for each field. When you click any field name, the

lower area of the screen displays the field properties.

4. Click Save.

5. Type in a table name for the newly created table.

6. Click OK.

Page 9: Microsoft Access 2016 · Microsoft Access 2016 allows you to create and modify databases through its Custom Web App. The data and database objects of an Access app are stored in either

A c c e s s D a t a b a s e T u t o r i a l – M i c r o s o f t A c c e s s 2 0 1 6 f o r t h e W e b

https://accessdatabasetutorial.com/ 4

Launching a Web App

When creating the Web App, you can modify or adjust what is contained in the application.

However, it’s not until you launch the app that you can enter data and interact with the app

through a web browser.

These are the steps to follow in launching the web app:

1. Click Launch App from the Home tab of the ribbon bar.

2. Click a table in which you want to enter data.

3. Type the data in the available fields.

4. Click to save your changes.

When you view your data in a browser, you can see the action bar. The purpose of the

action bar is it allows you to add, delete, and save changes to your data. But in the

Datasheet view, the changes are recorded only when you click onto a new record.

Page 10: Microsoft Access 2016 · Microsoft Access 2016 allows you to create and modify databases through its Custom Web App. The data and database objects of an Access app are stored in either

A c c e s s D a t a b a s e T u t o r i a l – M i c r o s o f t A c c e s s 2 0 1 6 f o r t h e W e b

https://accessdatabasetutorial.com/ 5

The List View

The List view is one of the three demonstrations of data shown for a particular table. It is

divided into two areas. The first area which is referred to as the list control, displays a

simple tabular list of the records on the left side of the page. The complete details of that

record are shown in the second detail area, on the right side of the view. As new records are

added or deleted, the list control area automatically updates so long as the changes in the

detail area are saved.

To view the List, follow the steps here:

1. Click List.

2. Click the Edit button on the action bar.

3. Search for a field that shows the text Find. This is the new Autocomplete control.

4. Matches are shown as you type into an Autocomplete control. The control also has

an option to add a new item. Click this option.

5. After selecting to add a new item, enter the new data values.

6. Click the Save button.

7. Close the window. Now, your newly created record is displayed as having been

Page 11: Microsoft Access 2016 · Microsoft Access 2016 allows you to create and modify databases through its Custom Web App. The data and database objects of an Access app are stored in either

A c c e s s D a t a b a s e T u t o r i a l – M i c r o s o f t A c c e s s 2 0 1 6 f o r t h e W e b

https://accessdatabasetutorial.com/ 6

chosen in the Autocomplete control.

The Datasheet View

Second of the three data presentations is the Datasheet view which provides a tabulation of

the data and can be scrolled left to right. To input new data in Datasheet view, you can start

by either typing into a blank row or by clicking the plus sign on the action bar. To edit an

existing row, type into a cell in the row. Records and edits are saved when you click a cell in

another row. The columns can be reorganized and the rows can be sorted and filtered.

Here is how you input data in Datasheet view:

1. Click Datasheet.

2. Input new data in a record. After you move out of the first field, the record selector

on the left changes to a pencil shape.

3. Click a cell in any other rows to save your changes.

4. Point to a column heading until the mouse shape changes to a cross. Then click, hold,

and drag the column to a new column position to rearrange the column.

5. Click the drop-down arrow to show the options for filtering and sorting data.

Page 12: Microsoft Access 2016 · Microsoft Access 2016 allows you to create and modify databases through its Custom Web App. The data and database objects of an Access app are stored in either

A c c e s s D a t a b a s e T u t o r i a l – M i c r o s o f t A c c e s s 2 0 1 6 f o r t h e W e b

https://accessdatabasetutorial.com/ 7

The Summary View

Summary view is a read-only data presentation which combines a list of values with the

related item control, and tabulates the matched records. Summary views created by

templates generally use ‘By Group’ as the label in the view selector. Summary views enable

you to see a tabulation of data by grouping on a particular field. You can also filter the

grouping field to limit the displayed groups.

To perform in Summary view,

1. Look for a suitable table that has a By Group view. Then click By Group.

2. Enter any filtering data to decrease the visible groups.

3. Click the search symbol. Then click a group to display the members of the group.

4. In views created by templates, you can click the tabulated record to show a popup

window for a detailed record.

Page 13: Microsoft Access 2016 · Microsoft Access 2016 allows you to create and modify databases through its Custom Web App. The data and database objects of an Access app are stored in either

A c c e s s D a t a b a s e T u t o r i a l – M i c r o s o f t A c c e s s 2 0 1 6 f o r t h e W e b

https://accessdatabasetutorial.com/ 8

Navigating to the Team Site

Your team site comprises all your Web Applications. If you begin by launching your Web

App, you can use the Navigate Up menu option to get to the site. When using another

computer in which your site could not be shown as a Recent item, you can go to Team Site –

Site Contents and open your Web App in Access.

1. Click Back To Site.

2. Click Site Contents.

3. Click the ellipse button (...) to show other options for an application.

4. Close the options for the application. Then click a Web App to display the application

in the browser window.

5. Click Customize In Access.

6. Click Open to launch your Web App in Access.

7. Click OK to any security prompts to open the Web App.

Page 14: Microsoft Access 2016 · Microsoft Access 2016 allows you to create and modify databases through its Custom Web App. The data and database objects of an Access app are stored in either

A c c e s s D a t a b a s e T u t o r i a l – M i c r o s o f t A c c e s s 2 0 1 6 f o r t h e W e b

https://accessdatabasetutorial.com/ 9

Creating a Web App Using a Template

Access has several application templates that you can choose and make use of in order to

create complete applications. Templates that have names beginning with Desktop generate

desktop databases. While other templates generate Web Apps. Upon starting Access, the

screen will display an option of both desktop and Web App database templates.

Steps in creating a web application with the use of a template:

1. Click the suitable template in the Office Start Screen.

2. Enter a name for your Web App in the App Name text box.

3. Type your Office 365 URL in the Web Location text box, or select from the Available

Locations list.

4. Click Create.

Page 15: Microsoft Access 2016 · Microsoft Access 2016 allows you to create and modify databases through its Custom Web App. The data and database objects of an Access app are stored in either

A c c e s s D a t a b a s e T u t o r i a l – M i c r o s o f t A c c e s s 2 0 1 6 f o r t h e W e b

https://accessdatabasetutorial.com/ 10

Modifying A Web App

While a desktop database draws a distinction between lookup fields and creating

relationships, a Web App unites the concepts of lookups and relationships. Hence, you will

not find any part of the web app that can show relationships because they have been built

into the method of generating a lookup.

When you make a table in a web app, you automatically get two great views formed for you;

datasheet and list. Each table can have a number of views. The views can display data from

other tables or queries in the app.

Importing an Access Desktop Database If you have an existing access desktop database, you can import the tables and the data

from that database into a new web app. Importing data also includes importing

relationships between tables and converting these to lookups.

To import an access database, start with a new custom web app. Then, import the existing

data into the newly created web app. Next, do the following steps:

1. Click Table on the home tab of the ribbon bar.

2. Click Access on the add tables screen.

3. Click Browse.

4. Locate the access desktop database file. (an already existing database file is required

in order to proceed with the next step.)

5. Click Open.

6. Click OK.

7. Select the tables to import.

8. Click Options to display options when importing data.

9. Choose to import or exclude the relationships.

10. Choose to import either definitions only or definitions and data.

11. Click OK. During the import process, your existing relationships will be converted

into lookup data types.

Page 16: Microsoft Access 2016 · Microsoft Access 2016 allows you to create and modify databases through its Custom Web App. The data and database objects of an Access app are stored in either

A c c e s s D a t a b a s e T u t o r i a l – M i c r o s o f t A c c e s s 2 0 1 6 f o r t h e W e b

https://accessdatabasetutorial.com/ 11

12. Right-click the table that has relationships to other tables. Then select Edit Table.

The relationship is now shown as a lookup data type.

13. Close the table.

CAUTION: Data types such as Attachments or OLE Objects are not supported in a Web App and will be excluded from the

import process.

Page 17: Microsoft Access 2016 · Microsoft Access 2016 allows you to create and modify databases through its Custom Web App. The data and database objects of an Access app are stored in either

A c c e s s D a t a b a s e T u t o r i a l – M i c r o s o f t A c c e s s 2 0 1 6 f o r t h e W e b

https://accessdatabasetutorial.com/ 12

Changing The Design of a Table

In the previous section, Creating a Custom Web App, I demonstrated how the desktop

interface can enable you to show content both by using the Table Selector and by displaying

the navigation pane. You can use either of these interfaces to enter design view and change

the design of your table.

To change the design of a table, follow the steps below:

1. Right-click a table then select Edit Table.

2. Click the Data Type drop-down arrow to see the available choices of data types.

In Access 2016, the available data types for fields have changed. The most noticeable

change is that a Text field is now called a Short Text field and a Memo field is called a Long

Text field.

But there are other differences between the available data types in a Web App compared to

a desktop database.

Continues/…

Page 18: Microsoft Access 2016 · Microsoft Access 2016 allows you to create and modify databases through its Custom Web App. The data and database objects of an Access app are stored in either

A c c e s s D a t a b a s e T u t o r i a l – M i c r o s o f t A c c e s s 2 0 1 6 f o r t h e W e b

https://accessdatabasetutorial.com/ 13

The following table defines the data types that are available.

TIP: Behind the scenes in Office 365, your data is stored in Microsoft SQL Server for a corporate solution or using Microsoft

SQL Azure in conjunction with Office 365. SQL Server is similar to Access in being a relational database but it is more

scalable (so it can handle more data that the normal Access Database), and SQL Azure is a version of SQL Server that it is

the platform that Microsoft use to deliver data on the web. We only explain the underlying SQL Server data types here for

reference; you don’t need to learn anything new to use this.

Creating a Lookup/Relationship

A Web App enables you to create a lookup, which ties or relates data between tables. The

Web App does not have a discrete area for viewing relationships. You can view them for

individual tables by selecting Modify Lookups in the Table Tools group on the Design tab.

A Web App simplifies the design process through keeping you focused on generating

lookups between tables. The terms relationship and lookup mean the same thing in a Web

App. In the popup window used to generate the lookup, you will see choices that are the

same as those available for generating relationships in a desktop database.

Create a lookup

1. On a blank line in the Field Name column, type a name for the lookup.

2. In the Data Type column, choose the Lookup data type.

3. Choose the option to look up data from a table or query.

4. Choose the table from which you want to get a value.

5. Choose the field to display.

6. Choose how the related records are managed.

7. Click OK.

8. Click Save.

9. Click View.

Page 19: Microsoft Access 2016 · Microsoft Access 2016 allows you to create and modify databases through its Custom Web App. The data and database objects of an Access app are stored in either

A c c e s s D a t a b a s e T u t o r i a l – M i c r o s o f t A c c e s s 2 0 1 6 f o r t h e W e b

https://accessdatabasetutorial.com/ 14

10. When viewing the data, you can see the Autocomplete control displaying the lookup

data.

11. In the browser, you can type data into the new field that was automatically added to

the List Details view.

TIP: The lower part of the Lookup Wizard screen displays the optional rules for defining a relationship between the tables.

TIP: If you have not changed the design of any views associated with your table, the added field automatically displays in

the updated List Details view and Datasheet view for the table.

Designing with a List Details view

A view in a Web App and a form in a desktop database are alike. There are four types of

views

1. List Details

2. Datasheet

3. Summary

4. Blank.

Continues/…

Page 20: Microsoft Access 2016 · Microsoft Access 2016 allows you to create and modify databases through its Custom Web App. The data and database objects of an Access app are stored in either

A c c e s s D a t a b a s e T u t o r i a l – M i c r o s o f t A c c e s s 2 0 1 6 f o r t h e W e b

https://accessdatabasetutorial.com/ 15

The List Details view is a powerful feature that has a vertical tabulation of the available

records on the left side of the view. When a record is selected, the record details are

displayed on the right side of the view. As you delete, add, or move fields, the layout

automatically moves other fields to accommodate the position of the new fields. The Record

Source field enables you to select from the table or any queries that include the table.

Creating a List Details view

1. Locate the object in the Table Selector.

2. Click the + sign.

3. Type a name for the view, select List Details as the view type, and select the record

source.

4. Click Add New View.

5. When the new view is displayed, click Edit.

TIP: In the lower part of a view, you may have a related item control. To resize the control, click to select it, then grab the

top edge of the control (the mouse shape will change when hovering over the edge) and resize the control.

Continues/…

Page 21: Microsoft Access 2016 · Microsoft Access 2016 allows you to create and modify databases through its Custom Web App. The data and database objects of an Access app are stored in either

A c c e s s D a t a b a s e T u t o r i a l – M i c r o s o f t A c c e s s 2 0 1 6 f o r t h e W e b

https://accessdatabasetutorial.com/ 16

Removing fields

1. Click a field.

2. Hold down the Ctrl key to select multiple fields and labels. Press the Delete key to

remove the fields.

3. Choose any other fields to be moved, and drag the fields to close up white space.

TIP: By using the Ctrl key, you can select multiple controls and move them around the layout. After selecting the controls,

move the mouse over the area until a crossing arrows symbol is displayed, and then click the left mouse button and drag

the controls to a new position. As you move the controls around, other controls will change position, opening up a gap into

which you can position the new controls.

Adding fields

1. Choose a field from the Field

List on the right side.

2. Drag the field to a new

position on the display area.

3. As you move over other

fields, they will make space

to allow the new control to

be positioned.

CAUTION: Although you can select multiple fields in the Field List, when you use the dragging action to add the fields, only

the first field will be added.

Page 22: Microsoft Access 2016 · Microsoft Access 2016 allows you to create and modify databases through its Custom Web App. The data and database objects of an Access app are stored in either

A c c e s s D a t a b a s e T u t o r i a l – M i c r o s o f t A c c e s s 2 0 1 6 f o r t h e W e b

https://accessdatabasetutorial.com/ 17

Designing with a Datasheet View

A Datasheet view is the simplest view to create. This view tabulates the data and displays

your fields as columns. It can be a very powerful method to quickly show a tabulation of

your data when combined with the abilities to filter data, sort data, and reorder the

columns.

In the Datasheet view, you can edit data without putting the record into edit mode. Then

move to the next record to continue editing another record. When you move on to edit

another record, the previously edited row will be saved automatically. This is a unique and

very powerful feature of a Web App datasheet.

Create a Datasheet view

1. Locate the table in the Table Selector.

2. Click the + sign.

3. Type a name for the view, select Datasheet as the view type, and select the record

source.

4. Click Add New View.

5. When the new view is shown, click Edit.

Format a field

1. Click a field to format.

2. Click the formatting charm.

3. Change the formatting.

TIP: You can delete fields by pressing the Delete key. You can select multiple fields and move them as a group by using the

Ctrl key, and add new fields by using the Field List.

Page 23: Microsoft Access 2016 · Microsoft Access 2016 allows you to create and modify databases through its Custom Web App. The data and database objects of an Access app are stored in either

A c c e s s D a t a b a s e T u t o r i a l – M i c r o s o f t A c c e s s 2 0 1 6 f o r t h e W e b

https://accessdatabasetutorial.com/ 18

Designing with a Summary View

A Summary view allows you to summarize data by calculating a sum or average. You need to

select a table or query with numerical fields before you can work with the best features in

this type of view.

A Summary view appears as a third available view on some of the tables. When you create

your own tables, a Web App will automatically make a List view and a Datasheet view.

Creating a Summary view

1. Find the object in the Table Selector.

2. Click the + sign.

3. Provide a name for the view, choose Summary as the view type, and choose the

record source.

4. Click Add New View.

5. When the new view is shown, click Edit.

6. Click the control list shown on the left.

7. Click the Data charm next to the list control.

8. In the Data popup window, select the field to group by, type a header for the

calculation, and select the field and calculation type.

9. Close the Data popup window.

10. Click the details area on the right.

11. Click the Data charm next to the details area.

12. Define the fields to summarize.

13. When displaying a summary view in a browser, click each record in the control list on

the left to see the summary details on the right change to match the selected record.

Page 24: Microsoft Access 2016 · Microsoft Access 2016 allows you to create and modify databases through its Custom Web App. The data and database objects of an Access app are stored in either

A c c e s s D a t a b a s e T u t o r i a l – M i c r o s o f t A c c e s s 2 0 1 6 f o r t h e W e b

https://accessdatabasetutorial.com/ 19

CAUTION: After you have closed any Data popup windows, you will see the fields and summary options displayed on the

control list, but in the detail section on the right, you will not see any information displayed. You might be unsure about

whether you have defined any choices in this detail section, so to check this, you need to redisplay the Data popup window.

Designing with a Blank View

A Blank view can make a presentation without a display of any fields from the table.

Although this gives more control over what data is displayed, it implicates more work upon

creating the view.

A view typically displays information from the table affiliated with the selected table and

related tables but it is possible to add a view that displays information from an unrelated

table. This example will demonstrate how to add to the Products Table View Selector a view

that lets you browse through the Category records while not showing any associated record

from the Products table.

Creating a Blank view

1. Find the object in the Table Selector.

2. Click the + sign.

3. Provide a name for the view, choose Blank as the view type, and then select the

record source.

4. Click Add New View.

5. When the new view is shown, click Edit.

6. Click the Data icon.

7. Change the record source.

8. Close the Data popup window.

9. In the Field List, select a field.

10. Drag the field onto the blank view.

11. After saving the changes, the View Selector for the table has a view that shows

information from another table without involving the table associated with the

selected table name caption in the View Selector.

Page 25: Microsoft Access 2016 · Microsoft Access 2016 allows you to create and modify databases through its Custom Web App. The data and database objects of an Access app are stored in either

A c c e s s D a t a b a s e T u t o r i a l – M i c r o s o f t A c c e s s 2 0 1 6 f o r t h e W e b

https://accessdatabasetutorial.com/ 20

Open, Rename, Duplicate, Or Delete a View

Upon displaying a view in Access, just click on the Settings/Actions charm next to the view

name to perform basic operations on the view. The options are Open In Browser, Edit,

Rename, Duplicate, and Delete.

When you select Open In Browser, the view immediately displays in the browser window,

then select the view. The Rename option lets you change the name of the view while the

Duplicate option makes a copy of a view, and the Delete option removes the view.

This task demonstrates how to switch to the table design and modify the structure of the

table upon editing a view.

Changing a table design when editing a view

1. Click the Settings/Actions charm.

2. Select Edit.

3. If you are editing a view and displaying the Field List, a link to edit the design of the

table will be displayed. Click the Edit Table option to change the design of the table.

4. Add a new field name.

5. Click Save. (You cannot save the changes unless you close any open views that refer

to this table.)

6. Click the tab with the open view.

7. Close the view. By repeating step 5, you can save the changes to the design of the

table.

TIP: If you switch to design view on the table, you will find that you need to close any open views before you can save any

changes that you make to the table.

Page 26: Microsoft Access 2016 · Microsoft Access 2016 allows you to create and modify databases through its Custom Web App. The data and database objects of an Access app are stored in either

A c c e s s D a t a b a s e T u t o r i a l – M i c r o s o f t A c c e s s 2 0 1 6 f o r t h e W e b

https://accessdatabasetutorial.com/ 21

Creating a Query

A query is a very effective tool for filtering and sorting data. It can also be used to bring

together data from several tables or other queries in a single presentation.

A query similar to a table can be opened to display data in the design interface without

showing the results in the browser. If you want to show the results in the browser, you need

to create a view that uses the query.

Listed in Section 7, “Modifying data using queries,” the details on how to create action

queries that modify data in a desktop database such as updating a set of rows. These action

queries, however, are not available in a Web App.

Creating a query

1. Click Advanced on the Home tab of the ribbon.

2. Select Query.

3. Choose one or more queries or tables from the Show Table dialog box by double-

clicking each table.

4. Click Close after your finished making selections.

5. Double-click each field listed in the table to add the fields from the source data into

the query grid.

6. Click Save.

7. Provide a name for the query and then click OK to save it.

8. Click View.

9. Select Datasheet View to test the query.

SEE ALSO: for a detailed explanation of how to construct select queries, see Section 6, “Selecting data using queries.”

Page 27: Microsoft Access 2016 · Microsoft Access 2016 allows you to create and modify databases through its Custom Web App. The data and database objects of an Access app are stored in either

A c c e s s D a t a b a s e T u t o r i a l – M i c r o s o f t A c c e s s 2 0 1 6 f o r t h e W e b

https://accessdatabasetutorial.com/ 22

Modifying the Table Selector

In a Web App, you interact with the data by choosing a table from the Table Selector and

then selecting an available view related with the table from the View Selector.

Renaming captions or hiding a table caption without affecting the underlying table can be

done for each table in the Table Selector. Thus, the Table Selector functions as the main

menu for the application while the View Selector functions as a submenu.

Modifying the Table Selector to hide or show a table

1. Click the table in the Table Selector.

2. Click the Settings/Actions charm.

3. Select Hide.

4. The table name caption in the Table Selector is now greyed out.

CAUTION: If an item is deleted, the underlying table will also be deleted.

TIP: After you hide a table, the table name caption will be greyed out and moved to the bottom of the Table Selector. The

table name caption will be hidden when you are viewing results in a browser.

Continues/…

Page 28: Microsoft Access 2016 · Microsoft Access 2016 allows you to create and modify databases through its Custom Web App. The data and database objects of an Access app are stored in either

A c c e s s D a t a b a s e T u t o r i a l – M i c r o s o f t A c c e s s 2 0 1 6 f o r t h e W e b

https://accessdatabasetutorial.com/ 23

Changing a table icon

1. Click the formatting charm.

2. Select an icon for the Table Selector item.

TIP: When you change a table name caption, it does not change the name of the actual table but instead changes only the

table name displayed on the Table Selector.

Working with Reports

In a Web App, a reporting feature that can be displayed in a browser window is not available

although you can create reports in a desktop database that is linked to the data held in the

Web App.

The first step is to select the Info option on the File menu to make a desktop database that

is linked to your data.

Continues/…

Page 29: Microsoft Access 2016 · Microsoft Access 2016 allows you to create and modify databases through its Custom Web App. The data and database objects of an Access app are stored in either

A c c e s s D a t a b a s e T u t o r i a l – M i c r o s o f t A c c e s s 2 0 1 6 f o r t h e W e b

https://accessdatabasetutorial.com/ 24

Creating a report database

1. On the File menu, select the Info option and then click Create Reports.

2. Choose a location. Enter a name for the reporting database.

3. Click Save.

4. The new reporting database opens, and on the left, you can see a list of the tables

that are linked to your Web App. Double-click a table in the navigation pane to show

the data.

Page 30: Microsoft Access 2016 · Microsoft Access 2016 allows you to create and modify databases through its Custom Web App. The data and database objects of an Access app are stored in either

A c c e s s D a t a b a s e T u t o r i a l – M i c r o s o f t A c c e s s 2 0 1 6 f o r t h e W e b

https://accessdatabasetutorial.com/ 25

There you have it.

I hope you found this guide very useful?

We’d love to hear your comments about this guide, so if you would rather email us rather

than blogging, send your comments to [email protected] – and don’t forget that

my website has lots more articles and free videos to help you plan, build and implement an

Access database.

Ben Beitler – “Your Access Database Expert”

Please visit our website:

AccessDatabaseTutorial.com

Thank You