IT tutorials
 
Applications Server
 

Sharepoint 2013 : Building an Application with Access Services (part 4) - Adding, Removing, and Editing Tables

11/29/2013 2:19:23 AM
- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019

2.2 Adding, Removing, and Editing Tables

The basic tables added by the Employees, Clients, and Projects nouns are close to the application’s requirements, but the current configuration offers no mechanism to track a consultant’s location. The Tasks table is extraneous and should be removed to prevent end user confusion. The following steps walk you through the process to remove the Tasks table and to add two completely custom tables. After the database contains the tables necessary to meet the requirements to track consultants on projects and consultants at locations, you need to configure the relationships between tables. Figure 2 demonstrates the relationships necessary for the application to function properly.

FIGURE 2

image

Defining a relation between tables in an Access web app is managed through the Lookup data type. A Lookup can work either as a choice column or as a link to data from a table or query. In addition to the linking of tables, some of the column names in the Projects table need to change to keep a consistent application vocabulary for the end users. The necessary column changes are reflected as underlined columns (refer to Figure 2). Follow these steps to create the new lookup and edit the existing column names:

1. Return to the Access 2013 client, and right-click Tasks in the Tile Pane. Notice that the Settings/Actions dialog pops up offering choices such as View Data, Edit Table, Delete, and Hide. Hide removes Tasks from the Tile Pane but does not delete the back-end table or associated views.

2. Select Delete and proceed through the confirmation dialog.

3. Open the Projects table.

4. Change the Owner field name to Consultant.

5. Change the Customer field name to Client.

6. To add a table, click the Table button in the Create section of the Ribbon. Click the Add a New Blank Table link on the right to create the following table:

LOCATIONS

FIELD NAME DATA TYPE
LocationID AutoNumber
Street Short Text
Neighborhood Short Text
City Short Text
State Lookup

The LocationID functions as the primary key. When you enter Lookup as the Data Type for State, a Lookup Wizard automatically pops up. Select I Will Type in the Values that I Want, and type in several codes, as shown in Figure 3.

FIGURE 3

image

7. Click the Save button to name the table Locations and save it to the server.

8. Create another new table, the Project Locations table. This table serves as the Many-to-Many Lookup table between the Projects and Locations tables. The following table describes the necessary columns:

PROJECT LOCATIONS

FIELD NAME DATA TYPE NOTES
ID AutoNumber Functions as the primary key.
LocationID Lookup As shown in Figure 3, a Lookup Wizard automatically pops up. Set this field to retrieve data from the Locations table, neighborhood column. Figure 4 demonstrates the proper wizard settings.
ProjectID Lookup Create a lookup to the Projects table.

FIGURE 4

image

9. Click the Save button to name the table Project Locations and save it to the server.

10. In the Tile Pane in the Access client, drag the Projects tab to the top and hide the Project Locations table. The Project Locations table is a linking table that should not be directly edited by end users.
 
Others
 
- Sharepoint 2013 : Building an Application with Access Services (part 3) - Creating the Basic Application
- Sharepoint 2013 : Building an Application with Access Services (part 2) - Configuring SQL Server 2012, Configuring the Windows Development Environment Firewall
- Sharepoint 2013 : Building an Application with Access Services (part 1) - Configuring an On-premise Development Environment
- Microsoft Lync Server 2013 : Lync Online and Hybrid Deployments - Configuring Directory Synchronization (part 1)
- Microsoft Lync Server 2013 : Lync Online and Hybrid Deployments - Configuring Directory Synchronization (part 1)
- Microsoft Lync Server 2013 : Lync Online and Hybrid Deployments - AD FS Deployment for SSO (part 3) - Adding or Converting a Domain for SSO
- Microsoft Lync Server 2013 : Lync Online and Hybrid Deployments - AD FS Deployment for SSO (part 2)
- Microsoft Lync Server 2013 : Lync Online and Hybrid Deployments - AD FS Deployment for SSO (part 1) - Configuring the First Federation Server in the Farm
- Sharepoint 2013 : Managing and Configuring Communities
- Sharepoint 2013 : Managing and Configuring My Sites (part 4) - SkyDrive Pro
 
 
Top 10
 
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
- Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
- Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
Technology FAQ
- Is possible to just to use a wireless router to extend wireless access to wireless access points?
- Ruby - Insert Struct to MySql
- how to find my Symantec pcAnywhere serial number
- About direct X / Open GL issue
- How to determine eclipse version?
- What SAN cert Exchange 2010 for UM, OA?
- How do I populate a SQL Express table from Excel file?
- code for express check out with Paypal.
- Problem with Templated User Control
- ShellExecute SW_HIDE
programming4us programming4us