Business Finance - Accounting Access Assignment
ACCESS ASSIGNMENT
FIRST DELIVERABLE INSTRUCTIONS
Organization of Assignment:
This Access database assignment is organized as follows:
Part 1: Introduction to the database program Access
Part 2: Business Processes, Information Needs and Beginning Database Structure
Part 3: Establishing Relationships between Tables in a Database
Part 4: Creating an Entry Form
Part 5: Adding Calculated Controls and Formatting Controls
Part 6: Creating Queries of Information from Data in the Database
· Parts 1 through 3 are contained within this Word document and comprise the first deliverable instructions for this assignment. On average, the first deliverable takes two to three hours to complete.
· Parts 4 through 6 are contained in another Word document that will be posted in a separate folder and comprise the second deliverable instructions for this assignment. On average, the second deliverable takes about twice as long to complete as the first deliverable.
Learning Objectives:
Students will:
1) Gain a basic understanding (e.g., factual knowledge, methods, principles, generalizations, theories) about:
· Basic database terminology and the general requirements for efficiently designing a relational database (tables, attributes, attribute types, and relationship types)
· Types of attributes (primary, foreign and nonkey/secondary fields)
· Types of relationships between related tables in a database (“one to many” and “many to many” relationship types)
· The role of a primary key for establishing the principle of “entity integrity”
· The role of a foreign key when a “one to many” relationship exists between related tables for establishing the principle of “referential integrity”
· The role of a dual primary key (“concatenated” primary key) when a “many to many” relationship exists between related tables for establishing “referential integrity”
2) Learn to apply course material ( to improve thinking, problem solving and decisions) by:
· Designing a relational database for recording invoices in a revenue system
· Creating an entry form for efficiently populating tables and generating invoices for sales transactions
· Implementing some basic internal controls in the relational database for improving data collection
· Creating queries and reports from data in the relational database created
· Identifying information characteristics being met by internal controls and database features
3) Develop specific skills, competencies and points of view needed by professionals, including:
· Gaining experience with using Access to create a relational database for recording invoices in a revenue system
· Appreciating the need for systematically planning, designing and controlling a relational database for efficiently and effectively gathering and storing data and producing information output
Besides emphasizing material in Chapter 4 – Relational Databases of the course textbook, this assignment also provides direct insight into certain material from other chapters, including:
· Chapter 1 – Accounting Information Systems: An Overview
· Chapter 2 – Overview of Transaction Processing and Enterprise Resource Planning Systems
· Chapter 14 – The Revenue Cycle: Sales to Cash Collections
This assignment will also be useful for gaining insight into certain material from Chapter 15 – The Expenditure Cycle: Purchasing to Cash Disbursements , because the revenue cycle and expenditure cycle mirror each other in many ways. We will also refer back to certain concepts learned from this assignment when covering SAP in the latter part of the semester.
Table and Figure References in Each Set of Deliverable Instructions:
Various tables and figures are referred to throughout the instructions for both deliverables.
· Tables and figures for Parts 1 through 3 are in a separate Word document that is posted along with this Word document at Blackboard.
· Tables and figures for Parts 4 through 6 are likewise in a separate Word document that will be posted along with the second deliverable instructions at Blackboard.
When instructions refer to a specific table or figure, please refer to it in the separate related document for assisting you with successfully completing the assignment.
Download, save, print each Word document and staple EACH one SEPARATELY from the others . Keeping each set of documents separately stapled will make it easier to successfully complete each deliverable. Keeping the tables and figures separate from instructions will make it easier to move back and forth between instructions and related tables and figures. Keeping each one stapled will help reduce the risk of skipping steps or working steps out of order.
Typographical Conventions Used in Each Set of Deliverable Instructions:
Please note the following typographical conventions, which are used in each set of deliverable instructions:
· Small capital letters are used for keyboard or mouse keys such as ctrl, enter, click and right click.
· Bold type is used for words/icons on a screen in Access that you work with, like click File and Save.
· Bold underlined type is for text that you are to enter via the keyboard.
· Italic type is used for emphasis throughout the instructions. It is also used for new terms or phrases when initially defined in the instructions.
· Keystroke combinations are represented with a plus sign. For example, if required to press and hold the ctrl key while pressing the S key, the text will read as follows: ctrl + S.
· An arrow (→) is used when a sequence of commands needs to be performed. For example, assume that you are instructed to perform the following in Word:
File → Options → Save → Save auto recover information every → 10 .
This series of commands in Word means that you would click File, select Options, then Save options, then check the Save auto recover information every checkbox and after selecting that checkbox, type in the digit 10 .
(As an aside, the example above is a good internal control for making sure that data entered is not lost. Consider controls such as this when creating files in Access and other programs).
· For field names in the Access tables (see Table 2, for example), ALLUPPERCASE type is used for primary keys and Mixed Case for nonkey/secondary keys. This helps with identifying more easily each type in tables.
· Special notes on Access techniques and database concepts are included in boxes such as the one encompassing this bullet item.
ITEMS TO BE TURNED IN FOR GRADING
There are two deliverables for this assignment:
1) The first deliverable is worth a base of 35 points. See schedule for due date and time .
Students will complete the instructions in this Word document and upload BOTH of the following at Blackboard at the link provided in the folder with this document:
· A backup of your database in progress
· Word document containing, in the following order , cover sheet of statement of academic honesty and rubric, screenshots taken, and formally typed answers to questions contained in the instructions.
2) The second deliverable is worth a base of 65 points. See schedule for due date and time .
Students will complete the instructions in the second deliverable Word document and upload BOTH of the following at Blackboard at the link provided with that document:
· Your completed database
· Word document containing, in the following order , cover sheet of statement of academic honesty and rubric, screenshots taken, and formally typed answers to questions contained in the instructions.
Instructions for Uploading Required Items at Blackboard:
· Go to the first deliverable folder
· Click Upload Both the Backup of First Deliverable Access Database and Word Document HERE
· Attach BOTH required files, one at a time, using Browse My Computer
· Select Submit AFTER attaching BOTH files. If submitting the wrong files or failing to submit both files, you can submit both files again by going back through this process.
You will follow a similar process for uploading required items for the second deliverable.
Access to submit will expire 11:59pm the night that each respective deliverable is due per the schedule. Do not email me asking for confirmation that uploaded files have been received. If there is an issue with Blackboard when trying to upload files before the expiration time , please email the files to me at [email protected]. Do not email to me files after the time due – they will not be graded.
Properly Producing Requested Screenshots:
The purposes of capturing screenshots throughout this assignment are to help facilitate grading and provide a strong level of assurance that the database uploaded to Blackboard is unique from all other databases turned in.
Requested screenshots are to be produced as follows:
1) Open statement of academic honesty and rubric cover sheet Word document (posted along with the other files for the first deliverable) and save as follows: LastNameFirstInitial_AccessAssignment_FirstDel.docx (for example, SmithR_AccessAssignment_FirstDel.docx). No grade will be earned if the cover sheet document is not used for gathering your output.
2) Read the statement of academic honesty and type your name in the space provided.
3) As you complete this assignment, you will be told at specific points in these instructions when you are to take a screenshot in Access. With Access fully maximized on your monitor, press the Print Screen key when requested in these instructions. This key is typically found above the number keypad portion on the keyboard. If using a Mac computer, select command + ctrl + shift + 3.
4) Toggle to your Word document.
5) On the page where you will place your screenshot (such as page 2 for your first screenshot), type the screenshot number and title per the instructions.
6) Place the cursor two lines below both the screenshot number and title and select Paste (either through the File option in the menu bar or a right click of the mouse).
7) Move to the next page in your Word document to place your next screenshot.
Please note the following when producing screenshots:
1) As a point of emphasis from item #3 above, Access is to be fully maximized on your monitor when taking screenshots. Screenshots should not show a partially minimized screen of Access. A partially minimized screen of Access reduces the information characteristics of understandability and completeness. A screenshot with a partially minimized screen of Access may also show other programs open, like Word. Screenshots showing other programs reduces the information quality of relevance because they are not pertinent to be shown.
2) Each screenshot, with its title, is to be on a separate page of your Word document.
3) Points per correct screenshot are shown in the deliverable statement of academic honesty and rubric cover sheet.
4) Because of the purposes of screenshots, failing to turn in one or more screenshots will result in the loss of more points, based on my judgment, than that which could have been earned for the screenshot(s) if correctly provided.
5) Screenshots are to be captured EXACTLY when requested in the assignment. Because of the purpose of screenshots, some are requested to be taken while in the middle of some process, such as while creating a table (as opposed to being taken after the table is created). Failing to take screenshots when exactly requested in the instructions may result in the loss of more points, based on my judgment, than that which could have been earned for the screenshot(s) had it been taken correctly.
6) Screenshots are to be placed directly into Word once taken (for example, do not paste in a software program such as Paint and then copy and paste from Paint into Word – go directly from Access to Word and paste).
7) Screenshots are NOT to be edited (for example, do not crop the screenshot or try to manipulate the screenshot by covering up some portion of it).
8) The toolbar at the bottom of the monitor MUST be included in your screenshot. Use of only the Print Screen key when copying will ensure that this occurs.
9) When pasting, Word should automatically place the screenshot from margin to margin in the document. However, if Word places it on a separate page from the screenshot number and title, please slightly resize (i.e., make slightly smaller) to fit the screenshot on the same page as both the screenshot number and title. To resize, click on the pasted screenshot with your mouse and then move your mouse to a corner of the screenshot until the double-arrows appear. Then click and hold on the screenshot corner and slightly resize to make it fit on the same page as both the screenshot number and title.
Failure to follow one or more of these screenshot instructions may result in the loss of more points, based on my judgment, than that which could have been earned for the screenshot(s) in question if these instructions had been followed properly.
Formal Answers to Questions:
Several questions are asked throughout the instructions of both deliverables. The questions help reinforce concepts from textbook material and discussion in the instructions. Formally answer questions in your respective Word files of requested output.
As noted previously, students are to place all screenshots right after the statement academic honesty and rubric cover sheet, with each screenshot and its number and title on a separate page in the chronological order encountered. All answers to questions are then to be placed on a separate page located after the last screenshot, in the chronological order encountered. Depending on the length of the question, a sufficient answer to a question is one to three sentences in length. Based on this and the number of questions, all answers should fit on one page. Your final Word document to turn in for this first deliverable will be four pages in length (cover page, two pages of screenshots and one page of answers).
As a reminder, Chapter 1 discusses the information characteristic of understandable. Understandability is partly achieved by having a nice presentation of information. Poor presentation reduces the value of information. Poorly presented information will cause a student’s score to be substantially reduced. Poor grammar and spelling reduces understandability, as well as accuracy and relevance. It is difficult to “disentangle” the substance of an answer (relevance and accuracy) from the format in which presented (understandability). Scores will therefore be reduced not only for inaccurate screenshots and/or answers, but also for poorly presented output (such as failing to include a screenshot number and/or title on the same page as a screenshot), as well as incorrect spelling and grammar. Please use Spelling & Grammar (located under the Review tab) and also carefully reread typed answers.
Other Comments:
· This two-deliverable assignment (including the answering of all questions) is to be done INDIVIDUALLY . Working on this assignment with another student is not collaboration but collusion, which is an act of academic dishonesty.
· Students retaking this course are NOT allowed to turn in any portion of a prior attempt for grading this semester of any part of this assignment when previously taking this course. This assignment is to be totally performed this semester. Turning in any part of a prior attempt is an act of academic dishonesty.
· Some class time will be set aside to work on both deliverables (please see the schedule for the class dates) . You may certainly begin working on this assignment before lab days – in fact, I encourage you to do so. Class time has been set aside mainly for students who have not worked with Access before, thereby allowing some hands-on assistance from me.
· Please do not rush through the instructions. Go at a nice pace and carefully read. Database development activities systematically build upon each other, resulting in an efficient and effective database comprised of integrated components working together to capture data and report information. Rushing will increase the risk of making mistakes, cause frustration, further loss of concentration and reduce the amount of knowledge that could have been learned from properly completing the assignment. It can also cause students not to appreciate fully the concepts being emphasized.
Rushing through this assignment would be like driving over the speed limit. If I were to drive 5 to 10 miles over the speed limit on my way home from Huntsville to The Woodlands, I really do not reduce a material amount of time off the drive. However, I increase my chances of getting in an accident and/or getting a speeding ticket. My chances of getting in an accident would further increase if I were driving an unfamiliar road, driving at night and/or encountering inclement weather. Some students may not have used Access before. This would be like driving an unfamiliar road. Some students may be familiar with Access but are performing new types of tasks and using it in an accounting setting for the first time. This would be like driving a familiar road, but at night or encountering inclement weather.
In technology-related assignments, finding out how to make a correction for a mistake can be like searching for a “needle in a haystack.” Again, please complete the assignment at a nice pace and appreciate the tasks being performed.
· Please put aside all distractions while completing the assignment, such as music, TV, Internet, cellphones, etc. Distractions can cause mistakes, especially when doing something for the first time.
· If you run into an issue, please STOP and email me, come by my office with your database and/or come to the classroom on the assigned lab day.
· When emailing me with a question, attach BOTH your database file AND a screenshot of where you are in the assignment and describe as best you can the problem encountered.
· The prior page discusses how proper grammar and spelling enhance the information characteristics of understandability, relevance and accuracy. This is not only applicable when answering questions in this assignment, but when sending emails. Poor grammar and spelling in emails may result in a reduction of one’s assignment grade. Failing to attach both your database and a screenshot to emails may also result in a grade reduction because the information characteristic of completeness is not met. Poorly written and incomplete emails also reduce the information characteristic of timeliness because further email correspondence will be required for me to obtain proper information for assisting the student. Please internalize these information characteristics when communicating.
· The deadline for sending me emails regarding issues with the deliverable is 12pm the day the deliverable is due . Emails about the deliverable with a timestamp after this date and time will not be answered. This deadline helps emphasize the information characteristic of timeliness.
· Please do NOT skip steps. Skipping steps will likely require work to be redone, more so than just the steps skipped because many steps in the assignment build upon earlier steps. Building a database is like building a house. A mistake or failure to perform an important activity in the foundation will require some or all that has been built on top of it to be removed so that the foundation can be corrected.
Please proceed to the next page for Part 1 of the deliverable.
Page | 26
PART 1
INTRODUCTION TO ACCESS
Part 1 provides an overview of how Access operates. This section addresses the Access ribbon; how to create a new database file; how to save, backup and close a database file; and how to open an existing database file. This section is valuable for completing both sets of instructions. Please read this section very carefully.
1.1 MS Office Version of Access
The screen captures in this assignment are based on the Office 365 version of Access. Access in Office 365 has some features that are slightly different than recent previous versions of Access, but not so much that they prevent using to complete this assignment. In fact, a feature in recent versions of Access is they allow using another version to work on the same database, with the ability to go back and forth between versions. This means a student can complete the assignment using one version on different parts of the database. Students are therefore allowed to use one or more versions to complete this assignment.
If you prefer to use Office 365 exclusively to complete the entire assignment but do not have it on your personal computer, remote login to the university (see highlighted comments posted with these instructions at Blackboard) allows the use of Access in Office 365 located on the university network. Included in the highlighted comments are also instructions on how to obtain a free copy of Office 365 through the university.
1.2 MS Office 365 Access Ribbon
These instructions use the following terminology regarding the Office 365 ribbon structure (see Figure 1 – as previously noted, all figures and tables for a deliverable are in a separate document posted with the respective deliverable instructions):
· File is used to perform operations on the database (open, save, close, print and set global preferences).
· The Office Ribbon is used to perform operations within the database file.
· A ribbon Group is a logical organization of operations within the ribbon.
· The Quick Access Toolbar has useful features such as Undo and Save.
1.3 Creating a New Database
· To open Access using Windows XP, use Start → Programs, locate and open Access; for Windows Vista, use Start → All Programs, locate and open Access. Access is a Microsoft Office Suites program, so it is sometimes found within a Microsoft Office program group.
· Select Blank database from the opening screen (see Figure 2).
· You are given on the resulting pop-up screen (see Figure 3) a choice of where to save and what to name your database. Use the
Open File button
to locate the location of your choice (such as a USB drive, hard drive on your personal computer, or your school network account) to save your new database.
· Name the database file LastNameFirstInitial_AccessAssignment , e.g., SmithR_AccessAssignment .
· Select Create.
· Remember your file location so you can find your database later.
· Access opens the new database and an empty table named “Table1.” If any changes are made to the table design, or if you add data to the table, Access will prompt you if you want to save the revised table when you exit the table. That saved table will then appear the next time your database is opened. If no changes are made after initially creating the table and you close the table or close Access, Table1 will not appear the next time your database is opened. If you close Table1 and it disappears, you can recreate it as described in Section 2.2 of these instructions.
1.4 Saving, Making Backups and Closing a Database
To close a database file, select File and then Close, or click the X button in the top right corner.
The save operation in Access works somewhat differently than it does in Word or Excel. You do not save the entire database, but rather save the component objects (e.g., tables, forms, queries, reports) as you work on objects individually. This is what is being described in the last bullet item in Section 1.3 of these instructions. The Save command under File (or the Save button above File) should be used frequently after work is performed on an object so your work is not lost if there is a software/hardware/power malfunction. Access will always prompt you to save any unsaved changes when exiting any object. Note that there is no save command to initiate when exiting the Access program. Upon exiting the program, Access performs a global save that captures the status of all the component objects in the database.
Backups are important for ensuring the accessibility of information. Make a backup of your database. Exit Access and find the location at which you saved your database. Make a copy of your database file by right clicking on it, selecting Copy, then right clicking again in a blank area within the same folder or another location you desire to place the backup, and selecting Paste. right click on the new file and select Rename, giving it a name that describes at what point the database is constructed. For this assignment, incorporate both the last step completed and the date of backup when naming backup files, e.g., SmithR_AccessAssignment_1.4_2022-8-16 (Part 1.4 on August 16, 2022).
Backing up data is a very important internal control within any organization, as well as in one’s personal life. It is best to place backups in a location separate from the original file. Organizations have lost both original and backup data because both were stored in the same location (including the same physical location) and then suffered some unfortunate event that caused both original and backup data to be lost.
1.5 Opening an existing database
· From the opening screen (see Figure 2), select Open. Then select the Browse icon to find the directory and file to be opened.
-Or-
If the file you want has been opened recently, it will be listed as a choice in the right pane after selecting Open. click the file.
-Or-
Select Start on the computer, locate the file, and double click it to open.
· If you see a security warning after opening your database, select File → Enable Content → Enable All Content to eliminate this warning from showing in the future.
Please proceed to the next page for Part 2 of the deliverable.
PART 2
BUSINESS PROCESSES, INFORMATION NEEDS and BEGINNING DATABASE STRUCTURE
When starting a new company, one of the first things you would do is hire employees, so you would need to record information about these employees. You would also purchase inventory items to sell. You would also obtain customers and make sales to them using invoices to document the sales transactions. Your employees are responsible for helping the organization be profitable, so you may give them an incentive of earning commissions on sales to customers.
In an AIS database, these types of data can be recorded in the five tables shown in Table 1 (see separate Word document containing tables and figures). In the first part of this assignment, you will create these five tables.
The framework of a relational database is built around tables containing data and designing the tables in such a way data redundancy (i.e., repetitious data) is minimized. Tables are joined, or related, to other tables through common pieces of data contained in each table. Table 2 contains the table data that will be used to populate the database tables shown in Table 1. This table data will NOT BE ENTERED as part of this deliverable – it will be entered as part of the second deliverable. Entering data as part of this deliverable will result in a reduction of the first deliverable grade.
Each column in a table describes an attribute, or characteristic, of a single topic, e.g., EmpName is an attribute of Employee in Table 2 (specifically, it is the employee’s name). Each row describes all the attributes for a specific record, e.g., each row in the employee table describes the attributes of a specific employee. In database terminology, the cells in columns in which data are entered are called fields and the rows are records. Your Chapter 4 of the course textbook also refers to rows as tuples (rhymes with the word “couples”).
In the Access Datasheet View (see Figure 4), the bottom right panel contains the table data. When column headings and rows are added in the Design view, this section of the Datasheet View will resemble the appearance of a spreadsheet.
The data shown in Table 2 will be explained more fully in these instructions. The next step in this assignment is to create the five tables necessary for ultimately creating both an invoice entry form and queries of information located in the database.
2.1 Access Objects
As mentioned previously, the framework of a relational database is built around tables. In Access jargon, the table is an object (also commonly referred to as an entity or relation). Objects store data and provide tools for manipulating and displaying the data. Access objects include the following:
· Tables that contain the underlying database data.
· Queries that allow the user to manipulate, search and sort data.
· Forms that provide a user-friendly interface for entering or displaying data.
· Reports that convert data into useful information for decision making. For example, an income statement that is generated in a database is a report that uses a query to sort for revenue and expense transactions to display the resulting information in an income statement format.
Identifying Access Objects
Access provides visible icons that appear to the left of all objects in the Navigation pane.
Used for tables.
The overlapping tables icon is used for queries, as queries represent the joining of linked tables for analysis and reporting.
Used for forms.
Used for reports.
2.2 Creating a Database and Naming Tables
· If not already having done so, follow the steps in 1.3 to create and name a new database file.
· You should see a screen like Figure 4, the Datasheet View, which is used for creating and populating database tables. When you create a new database file, Access will create the database and usually open an empty table named “Table1.” If you see “Table1” in the right pane, then skip the next bullet item.
· If you do not see “Table 1” in the right pane, as shown in Figure 4, then use the Create ribbon and select Table as shown below:
· From the Home or Table Fields ribbon (above the navigation pane), select View and then Design View:
· Enter Employee in the pop-up box and then select OK.
In this assignment, you will create five tables with the following names:
1. Employee (which you have just created, and will continue to work on in section 2.4.1)
1. Inventory (do not create yet – you will create this table later in section 2.4.2)
1. Customer (do not create yet – you will create this table later in section 2.4.3)
1. Invoice (do not create yet – you will create this table later in section 2.4.4)
1. InvoiceLine (do not create yet – you will create this table later in section 2.4.5)
As a reference to Chapter 2 of the course textbook, the first three tables are master files (employee and customer are “agents” and inventory is a “resource”) while the last two are transaction files (both are “events”).
2.3 Renaming Tables
Section 2.2 describes how to name empty, unstructured tables upon their initial creation, e.g., “Table1” and then naming “Employee.” This section describes how to rename tables that have already been named, structured and even populated. This can be useful if erroneously naming a new table.
From the Data Sheet View or Design View: You must first close the table to rename it. Follow these instructions:
1. Open your database file and you will see a screen that is like Figure 4.
2. Right click on the table, e.g., Employee, in the right-hand panel and Close. If closing an empty table, e.g., “Table1,” it will disappear. See section 2.2 for recreating and naming an empty table.
3. In the left-hand pane (the navigation pane), right click on the table, select Rename, then enter the new table name.
2.4 Creating the Database Structure using Access Tables
The steps below will be used to design and populate database tables in this assignment:
1. Create and design the tables where data is stored.
2. Create the structural relationship between tables.
3. Create forms to enter data into the tables.
It is possible to enter data into tables without fully designing the table and its structure, e.g., to enter data from the Datasheet view shown in Figure 4. Eventually, the characteristics of each field must be described, e.g., data is required/not required to be entered in the field. The instructions below describe how to design the table attributes prior to entering data, which is the most efficient way to design a database.
If not already done so, follow the instructions in section 1.5 to open your database file and section 2.2 to name your employee table. You should be looking at a screen like Figure 5, the Table Design View. If you do not see the Design View, but instead see the Datasheet view (Figure 4), then use the View button in the bottom right corner to switch to Design View.
Use Design View to create the table structure for the data in Table 2. You need to use the exact names and abbreviations shown in the following section to avoid confusion and to fit the information in the space available in the invoice form that you will create later in the assignment.
You are required to specify the field properties for each data element in each table. These properties relate to the data field’s characteristics, or attributes. Examples of field properties to be specified include:
· The size of the field
· The field’s format
· Whether data is required to be entered in the field
· The caption that will appear in Datasheet View for data entry and on reports that include the field
· Any default values, or whether the field can contain a blank or zeroes
· Validation rules, such as those governing a limit on sales commissions, for example
· The text for the error message to appear if the validation rule is violated
· Whether the field will be used for an index file
For purposes of this assignment, the field properties for each data element will be provided to you in these instructions. The properties will vary depending on the field type (e.g., text, number, currency, and data).
2.4.1 Employee Table
This section describes the creation of the structure of the employee table that was created in Section 2.2. The fields and attributes for the employee table are described below.
Field1
Field Name: EMPCODE
By Default, Access should make the first field the primary key, designated with the key icon
in the column just left of the field name (see Chapter 4 of the course textbook for discussion of the concept of the primary key, which is
THE
attribute that uniquely identifies a specific record from all other records).
As you can see in Figure 5, Access uses the default name “ID” for this field. Change the field name by highlighting “ID” and entering EMPCODE. Note that we are using all UPPERCASE letters for the field name of the primary key. The uppercase letter convention will help us quickly identify primary key fields when we review the entire database structure.
Before moving on to the next field, be sure that the key icon
appears to the left of EMPCODE in the fieldname location. If there is no key icon, then right click on EMPCODE and select
Primary Key from the pop-up menu.
Data Type: Short Text
You are instructed to use Short Text here but could have also used the Number format for this field. Regardless of the format used, you would have to be sure to format EmpCode the exact same way in all other tables where this field appears to the database works properly.
Design View and the Data Dictionary
When you define the Data Type, Field Size and other characteristics of the EMPCODE field, you are creating the database’s data structure or internal level schema. The data structure can be viewed as a component of the data dictionary of the database. See Chapter 4 of the course textbook for more information about data structure, schemas and data dictionaries.
For more information on data types, select the
Help ribbon and
and search for
format property then review the results such as that for date and time fields in Access and the introduction to data types and field properties in Access. In this assignment, you will be required to use these four field types:
Text,
General Number,
Currency and
Date/Time.
Remaining attributes of EMPCODE are entered in the Field Properties section of the Design View (see Figure 5).
Field Size: 4 .
Read the following news article and recognize the importance of formally defining the maximum number of digits of data that can be entered in a specific field. Reasonably defined field sizes would have prevented these errors from occurring.
http://news.yahoo.com/blogs/sideshow/-paypal-accidentally-adds--92-quadrillion-to-man%E2%80%99s-account--215841975.html
QUESTION #1 TO BE FORMALLY ANSWERED IN OUTPUT TURNED IN FOR DELIVERABLE #1: In your Word document, type “Response to Question #1:” on the fourth page of your output (as a reminder, all answers are to be placed on the last page of your output following the cover page document provided and two separate pages of respective screenshots requested later in these instructions) and formally answer the following question:
To assist with answering this question, a PDF file of pages 398-399 from Chapter 13 of the course textbook is posted along with these instructions. Read the PDF file and identify the data entry control that is in place by defining the maximum number of characters of data for a field, which helps ensure that the input data will fit into the field. Explain why, including reference to content from the news article at the link above that shows this control was carefully considered.
Caption: Employee Code
The caption property provides an alternative name for the field. This alternative name, or alias, appears in reports and forms used by end users of the database. For example, you may use the field name EMPCODE within Access, but when you generate a report for the payroll supervisor, you will want the report to display the field’s caption “Employee Code” because it is easier to comprehend and interpret as to what information is provided.
QUESTION #2 TO BE FORMALLY ANSWERED IN OUTPUT TURNED IN FOR DELIVERABLE #1: In your Word document, type “Response to Question #2:” and formally answer the following question:
Of the characteristics of information in Table 1-1 from Chapter 1 of the course textbook, identify the one that is most directly enhanced by using the caption feature. Explain why.
Required: Yes
EMPCODE is the primary key of the employee table. Therefore, the Required attribute must be set to Yes. In other words, every employee record in the employee table must have an employee code. Your textbook describes on page 103 of Chapter 4 that primary keys cannot be null. This requirement is referred to as the entity integrity rule.
Setting the Required attribute to yes provides an internal validation control within the database. This prevents omitting the entry of a value for a required attribute about each employee. When entering invoice data, Access will not allow you to go to the next record without entering a value for EMPCODE. This is logical, as an employee record without an EMPCODE would render the database almost useless for searching and sorting records.
QUESTION #3 TO BE FORMALLY ANSWERED IN OUTPUT TURNED IN FOR DELIVERABLE #1: In your Word document, type “Response to Question #3:” and formally answer the following question:
Of the characteristics of information in Table 1-1 from Chapter 1 of the course textbook, identify the one that is most directly enhanced by making sure there is no omission of an employee code value for any employee record in the table. Explain why.
Allow Zero Length: No
Explaining the meaning of a zero length entry is beyond the scope of this exercise. Just enter No in all situations for this question.
Indexed: Yes (NO duplicates)
You must index the primary keys so Access can perform searches using the indexed values. It is recommended that you index only primary key fields. You cannot allow duplicates for EMPCODE because this indexed field is your primary key.
|
Index Files Every time you tell Access to index on a field, Access creates an index file to increase the speed at which records in the main file are sorted and accessed. An index file has the same number of records as the main file but only two fields—an index key (which is the field you told Access to index on) and the record address. Each time you add or delete a record in the main file, all its related index files also are updated because the index file must stay sorted on the index key. If you do not expect to sort frequently on a specific field, creating an index file is a waste of disk and RAM resources. You can sort on any field in Access regardless of whether you have an index file for that field.
|
Unicode Compression: Yes
There are other table structure settings, e.g., IME Mode. You may ignore these other settings and leave the default values as they are because they are not necessary for this introductory case.
When this section is completed, the resulting table should look like that in Figure 6.
Having created and defined the attribute settings for the primary key, you will now do the same for the nonkey/secondary key fields. Remember, the primary key is THE attribute that uniquely identifies a specific record from all other records. However, nonkey/secondary key fields by themselves cannot do so.
For example, the next field to create is the employee’s first name. It is possible for multiple employees to have the same first name. The next field after that is the employee’s last name. It is also possible for multiple employees to have the same last name (and even the same first and last name). Each employee, however, has a unique employee code, which is the primary key that uniquely identifies an employee. Other nonkey/secondary key attributes help describe in further detail the record uniquely identified by the primary key.
Field2
click on the field below EMPCODE and design it as follows.
Field Name: EmpFirstName
Data Type: Short Text
Field Size: 20 (10 to 20 characters is usually large enough to accommodate all possible first names.).
Caption: Employee First Name
Required: Yes
Allow Zero Length: No
Indexed: No
(Leave all other settings as is)
Field3
Field Name: EmpLastName
Data Type: Short Text
Field Size: 30 (20 to 30 characters is usually large enough to accommodate all possible last names.).
Caption: Employee Last Name
Required: Yes
Allow Zero Length: No
Indexed: No
(Leave all other settings as is)
SCREENSHOT #1 TO BE PROVIDED IN OUTPUT TURNED IN FOR DELIVERABLE #1: Make a screenshot of your table at this point in the assignment and place on the second page of your Word document (see earlier instructions on pages 4 and 5 for properly doing so). Two lines before the screenshot, provide the title “Screenshot #1 – Employee Table after Creating EmpLastName Field”.
Field4
Field Name: CommRate
Data Type: Number
Field Size: Single
Single is a floating decimal formula that allows numbers to the right of the decimal point and it uses a relatively small number of bytes for storage. For more information on field size options, select the
Help ribbon and
and search for
field size. For example,
integer specification uses a single byte of storage, but that size specification would not allow for numbers to the right of the decimal point.
Format: Percent
Decimal Places: 2
Input mask: Leave blank for now. We will learn about this in a later section.
Caption: Commission Rate
Default Value: 0 to set the default value to zero so that if no value is entered, it will default to zero.
Validation Rule: Assume the minimum commission rate for the company in this exercise is zero because middle managers sometimes make sales, but they receive no commission. The maximum commission rate is 25%. From the keyboard, enter >=0 And < =.25 .
Validation Text: Enter Valid commission rates are 0% to 25% . This message will appear if entering a commission rate that is NOT between the lower limit of 0% and upper limit of 25%. This is because entering a commission rate outside the range would be an error.
Required: No
Indexed: No
(Leave all other settings as is)
In Design View, the table should look like Figure 7.
QUESTION #4 TO BE FORMALLY ANSWERED IN OUTPUT TURNED IN FOR DELIVERABLE #1: In your Word document, type “Response to Question #4:” and formally answer the following question:
Read the PDF file of pages 398-399 from Chapter 13 of the course textbook posted along with these instructions. Identify the control that is in place by creating the validation rule for CommRate. Explain why.
QUESTION #5 TO BE FORMALLY ANSWERED IN OUTPUT TURNED IN FOR DELIVERABLE #1: In your Word document, type “Response to Question #5:” and formally answer the following question:
Of the characteristics of information in Table 1-1 from Chapter 1 of the course textbook, identify the one that is most directly enhanced by the validation rule for CommRate. Explain why.
Save the table just created. This can be done multiple ways, such as:
· Click the Save button in the top left corner; or
· Click File → Save; or
· Click the X on the table tab at the top left of the table and Yes in the resulting message box.
As a reminder, do NOT enter any table data as part of this deliverable. The table data shown in Table 2 will be entered as part of the second deliverable.
2.4.2 Design Inventory Table
Create another table using Create → Table → View → Design View → Inventory. This table will contain the attributes of the inventory items to be sold. Enter the following fields and related attribute settings.
Field1
Field Name: PRODNO (this is the primary key field for the table)
Data Type: Short Text
Size: 5
Caption: Product No.
Required: Yes
Allow Zero Length: No
Indexed: Yes (NO duplicates)
(Leave all other settings as is)
Before moving on to the next field, make sure that the key icon
appears to the left of PRODNO. If there is no key icon, then right click on PRODNO and select
Primary Key from the pop-up menu.
Field2
Field Name: ProdDesc
Data Type: Short Text
Field Size: 20
Caption : Description
Required : Yes
Allow Zero Length : No
Indexed : No
(Leave all other settings as is)
SCREENSHOT #2 TO BE PROVIDED IN OUTPUT TURNED IN FOR DELIVERABLE #1: Make a screenshot of your table at this point in the assignment and place on the third page of your Word document. Two lines above the screenshot, provide the title “Screenshot #2 – Inventory Table after Creating ProdDesc Field”.
Field3
Field Name: UnitPrice
Data Type: Currency
Format: Currency
Decimal Places: 2
Caption: Unit Sale Price
Default Value : 0
Required: Yes
Indexed: No
(Leave all other settings as is)
Save the table.
2.4.3 Design Customer Table
Create another table using Create → Table → View → Design View → Customer. This table will contain customer data. Enter the following fields and related attribute settings.
Field1
Field Name: CUSTCODE
Data Type: Short Text
Field Size: 4
Caption: Customer Code
Required: Yes
Allow Zero Length: No
Indexed: Yes (NO duplicates)
(Leave all other settings as is)
Make sure that the key icon
appears to the left of CUSTCODE in the fieldname location.
Field2
Field Name: CustOrgName
Data Type: Short Text
Field Size: 30
Caption: Customer’s Business or Organization Name
Required: Yes
Allow Zero Length: No
Indexed: No
(Leave all other settings as is)
Field3
Field Name: CustCity
Data Type: Short Text
Field Size: 13
Caption: Customer City
Required: Yes
Allow Zero Length : No
Indexed: No
(Leave all other settings as is)
Save the table.
2.4.4 Design Invoice Table
Create another table using Create → Table → View → Design View → Invoice. This table will contain invoice data. Enter the following fields and related attribute settings.
Field1
Field Name: INVNO
Data Type: Short Text
Field Size: 6
Caption: Invoice No.
Required: Yes
Allow Zero Length: No
Indexed: Yes (NO duplicates)
(Leave all other settings as is)
Before moving on to the next field, be sure that the key icon
appears to the left of INVNO in the fieldname location.
Field2
Field Name: InvDate
Data Type: Date/Time
Caption: Invoice Date
Required : Yes
Indexed : No
(Leave all other settings as is)
Note: When initially choosing “Date/Time” as the Data Type, Access will default to a format of “month/day/year”. Other formats are available but this is the one desired in the assignment. Therefore, no further format choices need to be made.
Field3
Field Name: EmpCode
Date Type: Short Text
Field Size: 4
Caption: Employee Code
Required: Yes
Allow Zero Length : No
Indexed : No
(Leave all other settings as is)
Field4
Field Name: CustCode
Data Type: Short Text
Field Size: 4
Caption: Customer Code
Required: Yes
Allow Zero Length: No
Indexed: No
(Leave all other settings as is)
Save the table.
2.4.5 Design InvoiceLine Table
Create another table using Create → Table → View → Design View → InvoiceLine . Enter the following fields and related attribute settings.
Field1
Field Name→
INVNO (
Do NOT make this the Primary Key field yet. If noted as the Primary Key, right click on
and Click on
Primary Key to remove.)
Data Type: Short Text
Field Size: 6
Caption: Invoice No.
Required: Yes
Allow Zero Length: No
Indexed: Yes (Duplicates OK)
(Leave all other settings as is)
Duplicates are OK in this case because a single invoice can have many invoice lines, with each invoice line representing a product sold to a specific customer at that time (see Figure 12-15 in the course textbook for an example of an invoice with multiple inventory products sold). Therefore, we can have duplicates of the INVNO in this table if INVNO is concatenated (combined with) with PRODNO as the primary key of the table. This concept of the ability of having two or more attributes combine as a primary key in a table is noted in Chapter 4 of the course textbook. We will discuss this concept when covering Chapter 4 and refer to the concept as the dual or concatenated primary key.
If Access will not let you select “Yes (Duplicated OK),” and instead gives you a message stating that “Removing or changing the index for this field would require removal of the primary key. If you want to delete the primary key, select that field and click the Primary Key button.”, select OK to the message. You will need to remove the key icon
from the INVNO field name. To remove, point to the INVNO field name, right click on
and click on
Primary Key.
Field2
Field Name: PRODNO
Data Type: Short Text
Field Size : 5
Caption: Product No.
Required: Yes
Allow Zero Length: No
Indexed: Yes (Duplicates OK)
(Leave all other settings as is)
Like INVNO in this table, Duplicates are also OK in this case because a specific product type can be sold many times (i.e., be on invoice lines of many invoices). We can have duplicates of the PRODNO in this table if it is concatenated (combined with) with INVNO.
IMPORTANT: Read the next lines very carefully about how to concatenate (combine) two attributes as a dual or concatenated primary key in a table.
Make INVNO and PRODNO the dual primary key as follows:
Hold ctrl and then click on the row selector for each field. With both rows selected and continuing to hold ctrl, move your pointer and click the
Primary Key button
in the
Tools group. Both rows should now be selected as the dual primary key of the table.
Field3
Field Name: QtySold
Data Type: Number
Field Size: Long Integer
Decimal Places: Auto
Caption: Quantity Sold
Required: Yes
Indexed: No
(Leave all other settings as is)
Save the table.
If any tables are open, close by using right click → Close on each table tab in the right-hand panel.
2.4.6 Make Backup of Database in Progress
This would be an excellent time to make a backup of the entire database. As described in Section 1.4, exit out of Access, use Windows Explorer to find your database file, make a backup copy and rename the copy with the addition of the last step completed and date of backup (for example, SmithR_AccessAssignment_2.4.6_2022-8-16). This information provides a great description to a user seeking the correct backup.
Please proceed to the next page for Part 3 of the deliverable.
PART 3
ESTABLISHING RELATIONSHIPS BETWEEN TABLES
This section of the assignment illustrates how to establish relationships between tables. This feature makes a database powerful for reducing data redundancy and improving data sharing in an organization.
3.1 Establish Relationships among Tables
Reopen your original database – not the backup copy. Only use a backup copy if a significant event occurs to the original, such as the unfortunate corruption of the original file. If having to use the backup, make a backup of the backup and then proceed using it. Do not open any tables – all tables should be closed for this part of the assignment.
The next step in the process of implementing a database is to establish relationships among the tables by pairing the primary and foreign keys (this need to establish relationships between tables is discussed on pages 88-92 of your textbook and we will discuss this in class). A foreign key is a nonkey/secondary key in one table that is a primary key in another table. The ability to make the tables relate and interact with each other is THE feature that makes databases more powerful and efficient than conventional file systems.
click on the Database Tools tab and select the Relationships button, as shown below.
If a list of your five tables is not provided, click the Add Table button from the ribbon to show the list (see Figure 8). Add all five tables (by either double clicking on each table or selecting each table and clicking Add Selected Tables) and then close the list. Move tables (click on heading and drag) into the configuration shown in Figure 9. If one or more tables is not large enough so that all attributes are visible (i.e., no scroll bars at either side or bottom), adjust so that it is.
Note in Figure 9 the organization of the tables. Inventory is to the far left and is a resource table. InvoiceLine and Invoice are next and they are event tables. Employee and customer are on the far right and are agent tables. It is this typical organization that causes this diagram to be referred to as an REA diagram, based on the first initial of each type of table (the type of data contained within).
Note that there are three master files or tables in the database – inventory, employee and customer. Also, note that there are two transaction files or tables in the database – invoice and invoice line. It should make sense that these are categorized this way, because our two activities are transactions, while resources and agents are involved with such transactions and maintained in master files or tables.
Further note in Figure 9 that relationship join lines exist between specific tables. The next task to complete is establishing these lines in your database.
To establish, begin by clicking on a primary key of a table. The primary key is identified with the key
when you created the table structure. Primary key field names are also shown in
UPPERCASE letters in Table 2, which should have been the format in which the field was designed. Drag the
primary key to the related
foreign key of the related table. For example, drag EMPCODE in the Employee table to EmpCode in the Invoice table. Refer to the individual tables (Table 2) and/or the Table Relationship Screen (Figure 9) to guide you.
After each drag, an Edit Relationships window will appear (Figure 10). Check the Enforce Referential Integrity box. Referential integrity, a concept discussed in Chapter 4 of the course textbook, guarantees that a foreign key can never point to a nonexistent primary key. After establishing referential integrity, click Create.
NOTE: If you receive an error message like that below , recheck your table structure to be sure that the two fields that you tried to join are formatted EXACTLY the same within each table. For example, if you have EMPCODE formatted as “Short Text” in the Employee table, but EmpCode is formatted as “Integer” in the Invoice Table, then you will NOT be able to join the two fields.
Continue the process of establishing relationships so that your relationships EXACTLY match those in Figure 9, including the “1” and “∞” symbols for each respective relationship established.
If the “1” and “∞” symbols for one or more relationships are NOT in agreement with Figure 9, it could be that:
· Referential integrity is not enforced on the relationship in question,
· A primary key has not been assigned in one of the tables for which you are trying to establish a relationship with another,
· An error has been made in setting up the “Indexed” properties in the design of one of the tables, or
· A relationship was incorrectly established between two unrelated attributes – such as, for example, INVNO in the Invoice table and CUSTCODE in the Customer table.
Check each of the primary and foreign keys in each table to be sure that the indexed settings are correct. If index settings are incorrect, Access may have an incorrect view of the database structure. A common index error is in the InvoiceLine table, which requires concatenated primary keys.
You can edit a relationship by pointing to the join line and right clicking on the line. Go ahead and Right click on the line between the InvoiceLine table and the Invoice table to see that you can change your previous options.
Note the box for Relationship Type at the bottom of the Edit Relationship Window (see Figure 10). The Relationship Type is shown for letting the designer (in this case, you) make sure that it properly describes the underlying relationship between the two tables.
For example, the Relationship Type for the join line between INVNO in the Invoice table and INVNO in the InvoiceLine table should be “one-to-many”. Why? Because, in common business speak, ONE sale (represented by a single invoice) can consist of MANY types of products being sold (with each product represented by a separate invoice line – again, please see Figure 14-16 in the course textbook for an example of this).
Because of this relationship, INVNO is a foreign key placed in the InvoiceLine table. As we will discuss when covering Chapter 4, the proper selection and placement of the foreign key in a relationship is crucial because it reduces data redundancy in the relational database.
More on “Referential Integrity”
Without “referential integrity” (i.e., proper relationships between tables), a database would fail when pointers in one table cannot find a matching row in a related table. Referential integrity will prevent you from entering, for example, a customer name on an invoice form if that customer is NOT in the customer table. As another example, referential integrity prevents you from entering an inventory product number on an invoice when that product is NOT stored in the inventory master file.
Referential integrity also prevents you from deleting or changing records in the table in which the primary key exists because this would result in an “orphan” record in a related table in which the foreign key exists. For example, assume you entered check #101 in the check register table and charged the insurance expense account in the chart of accounts table (a debit to insurance expense). Then assume you tried to delete the insurance expense account from the chart of accounts table. Referential integrity would not allow you to delete the account because such a deletion would result in check #101 having a debit to a nonexistent expense account, i.e., an “orphan” in the check register table.
More on Relationships (Also Known as “Cardinality” in Database Terminology)
Note how Access depicts the relationship between tables.
∞ 1
Customer table
Invoice table
∞ is the symbol for infinity, meaning “many” in a database. The relationship (also commonly referred to as “cardinality”) shown above states that there is a “one-to-many” relationship between customers and invoices.
The “one-to-many” relationship between the Customer table and the Invoice table is articulated as follows in common business speak :
Many sales transactions (represented by respective invoices) can be made to a single customer, but each sales transaction (represented by a specific invoice) can only be made to one customer (i.e., a single sales invoice can only be assigned to one customer).
Because of this relationship, CustCode is a foreign key in Invoice table. If INVNO were a foreign key in Customer table, there would be a tremendous data redundancy of customer information (repetition of data in the nonkey/secondary key fields) in Customer table. This is because each time a sale would be made to a specific customer, the same secondary customer data (name, city, etc.) would be shown repeatedly unnecessarily in multiple unnecessary records in the Customer table.
Study Figure 9 – what kind of table has the “many” side of the relationship between inventory and invoice line; employee and invoice; and customer and invoice? The event table does and it is because events happen repeatedly. Resources do not occur repeatedly, nor do agents. Agents cause events to occur repeatedly and events occur repeatedly involving resources. Note that the event has the foreign key in a relationship with either a resource or agent in Figure 9. This is a good rule of thumb to keep in mind when designing a database.
Carefully read and reread the discussion in the previous two boxes. We will discuss these concepts when covering Chapter 4 in class.
3.2 Make Backup of Database in Progress
This would be another excellent time to make a backup of the entire database. Following instructions provided previously for making backups, name your backup as follows, based on having established relationships: S mithR_AccessAssignment_relationships_2022-8-16. This information provides a great description to a user seeking the correct backup.
DATABASE IN PROGRESS AND OUTPUT TO BE UPLOADED TO BLACKBOARD FOR DELIVERABLE #1: Upload both the backup just made of your database in progress and Word file of output (cover sheet, followed by two pages of screenshots and then formal answers to questions on the fourth page of the document) at Blackboard (steps for doing so are provided earlier in these instructions).
The output for this deliverable will be debriefed, followed by completion of the second deliverable.
10.4
Page | 26