Database Assign - Spring 2020.docxCustomer Invoicing:A Database Management System CaseUsing Microsoft AccessINSTRUCTIONS FOR STUDENTSPurposeThe purpose of this case is to reinforce...

1 answer below »



Microsoft Acces


Database Assign - Spring 2020.docx Customer Invoicing: A Database Management System Case Using Microsoft Access INSTRUCTIONS FOR STUDENTS Purpose The purpose of this case is to reinforce database concepts that we have acquired through in-class exercises, using Microsoft Access. When you finish Parts 1 and 2 of this project you should feel comfortable with Access and the basic concepts of a relational database. Hopefully, this exercise will give you the confidence to build your own relational database for information that is relevant to you! This project will guide you through the process of building a database invoice system. This process includes the following: 1. Create five relational tables. 2. Establish relationships among the tables. 3. Populate the three master file tables. 4. Create an invoice form for sales transactions. 5. Use the invoice form to input sales data and thereby populate the two transaction file tables. 6. Use the invoice form to display and print invoices. Typographical Conventions ● Bold indicates text that you type. Bold is also used to indicate a menu item or check box that needs to be selected. For example, to cut and paste a text passage, you should highlight the text, select Edit ∙ Cut from the menu bar, then move your curser to the location for the paste and select Edit ∙ Paste. ● Double question marks (??) mean that you need to figure out for yourself the appropriate entry or action. ● “. . . etc.” is used when a similar process or set of steps has been previously explained. When you see “. . . etc,” you should follow the processes described previously for other entries and actions that are similar. ● For field names in the Access tables, ALLUPPERCASE letters are used for primary keys and MixedCase for nonkey fields. ● Notes on Access techniques, database concepts, and accounting software integration are included in boxes. Page 1 Page 2 Creating an Invoice Form for Entering Sales Transactions Begin ● Load Access and select Blank Desktop Database. ● To the right of your screen, you will see a box that asks for your “File Name” – this is the name that you will use to save your database. Click on the folder to the right of the box to select the drive and directory location where you want to save your file. Type in a file name that includes your first and last names, e.g., SuzanneSmith.accdb. Click on Create. ● Make note of your file location so that you can find your file again at a later date. Notice when you are on the main window in an Access database (DB) you can create the following objects: ● Tables ● Queries ● Forms ● Reports ● Pages ● Macros ● Modules (programmed procedures) Understand Information Needs If we were starting a new company, one of the first things we would do is hire employees, so we would need to record information about these employees. Next, we would purchase inventory items. Then, we would obtain customers and make sales to the customers using invoices to document the sales transactions. In an accounting information system database, all this information is recorded in the five tables shown below. Information required Table description Table name Information about the employees Employee master file tblEmployee Information about the inventory items Inventory master file tblInventory Information about the customers Customer master file tblCustomer Information about sales transactions Invoice transaction file 1 tblInvoice Information about specific line items within each sales transaction Invoice transaction file 2 tblInvoiceLin e Page 3 Most of the detailed contents of each table are shown in Exhibit 1 and will be explained more fully as you complete this assignment. In the next section of this assignment, you will begin the process of creating the five tables. Page 4 Create Table Structure Before you can enter data in a table you have to create that table's structure. ● Under Create Tab, select Table Design from the Tables ribbon. (A table in datasheet view will be created by default the first time you create a new database.) Using the Table Design View, you will create the five tables described above. Please try to use the names and abbreviations as shown in the following sections to avoid confusion and to fit in the space provided on the invoice form. Data Structure In the design view, you will be creating the database’s table data structure, also called record structure or internal level schema. The data structure can be viewed as a component of the data dictionary. (For more information about data structure, see reference materials such as Heagy et al., 1999, pp. 10-19, or Bagranoff et al., 2008, Chapters 13-15.) Design tblEmployee The first table structure you create is for the employee table. Enter the fields and attributes as described below. First Field: Name: EMPCODE Make EMPCODE the key field by clicking on the key icon in the menu. Data Type: Short Text Data Type An important component of data coding is determining the data type. For EMPCODE we use short text because the employee code includes an alpha prefix (the letter e). See Exhibit 1. For more information on data types, use the Access help menu and search for field data types. In this project you will be required to use three other field types: number, currency, and date/time. Field Size: 6. This size will accommodate the six-digit employee code. Caption: Employee Code. The caption property provides an alternative name for the field. This alternative name, or alias, appears in Access reports and forms. The captions are provided for your benefit, and you should Page 5 use names that are descriptive and that you will recognize and understand. Required: Yes. Because EMPCODE is the primary key, the Required attribute should be set to yes. Setting the Required attribute to yes provides an internal validation control. When entering data, Access will not allow you to go to the next record without entering a value for EMPCODE. Allow Zero Length: No. It would be possible to have an attribute required, but allow zero length if a field may not be applicable to a particular record. However, you do not have this situation in any of your tables. Indexed: Yes (NO duplicates). Primary keys must be indexed so Access can perform searches for the indexed values. Indexing is not recommended for nonkey fields. You cannot allow duplicates for EMPCODE because this indexed field is your primary key. (You may reference an accounting information systems text, such as Heagy et al., 1999, pp. 10-6 through 10-9, or other supporting materials regarding purpose, advantages, and disadvantages of index files.) Index Files Every time you tell Access to index on a field name, Access creates an index file to increase the speed at which records in the main file are sorted and accessed. This 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 has to stay sorted on the index key. If you do not expect to sort frequently on a particular field, creating an index file is a waste of resources. You can sort on any field in Access whether or not you have an index file for that field. (See Heagy, et al., 1999, pp. 10-6 through 10-8, or other reference material.) There are several other table structure settings, e.g., Unicode compression. You may ignore these settings as they are not necessary for this introductory case. Second Field: Name: EmpName Data Type: Short Text Field Size: 20. Use your judgment in setting field sizes. 20 to 30 characters is common for last names Caption: Employee Name Required: Yes Allow Zero Length: No Indexed: No. You may index nonprimary keys, but it is not necessary. And if you do index them, be careful when you decide to allow or not allow Page 6 duplicates. If a nonprimary key is a foreign key on the many side of a one-to-many relationship, then you MUST allow duplicates, because there may be MANY of this attribute for each item in the related table. Third Field: Name: CommRate Data Type: Number Field Size: Single Format: Fixed Decimal Places: 3 Caption: Commission Rate Default Value: Set the default value to zero (0) so if no entry is made, the commission rate 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 20%. Therefore, set the validation rule to >= 0 And <= .2. validation text: valid commission rates are 0% to 20%. this message will appear if you attempt to enter a commission rate outside the valid range. required: no indexed: no note regarding the commrate field: for data type, you could use either number or currency. if you use number, you should use single field size to reduce the amount of space and memory used by the system. for a more in-depth discussion, go to the access help menu and search fieldsize properties. save the employee table with the name tblemployee. the table’s design view should look like exhibit 2 when completed. as a naming convention, we use tbl as a prefix for all tables and frm or f as a prefix for all forms. this naming convention helps you quickly distinguish between tables and forms in pull-down menus. file ⋅ close. for the remaining tables, you will notice that not all of the information is provided. this means that you must pay close page 7 attention to the instructions that were provided for the employee table, and then make appropriate choices for attributes (and how you define them) for the tables that follow on the next pages. page 8 design tblinventory enter the fields and attributes for the inventory table as described below. first field: name: prodno (make this the primary key field.) data type: short text size: ?? (refer to exhibit 1.) caption: product no. required: ?? allow zero length: ?? indexed: ?? second field: name: proddesc . . . etc. third field: name: saleprice data type: currency format: currency decimal places: 2 caption: sale price default value: 0 required: yes indexed: no file ⋅ save (as tblinventory), file ⋅ close. design tblcustomer enter the fields and attributes for the customer table as described below. first field: name: custcode . . etc. second and third field: . . etc. design tblinvoice enter the fields and attributes for the invoice table as described below. first field: page 9 name: invno …etc. second field: name: invdate data type: date/time . . . etc. third field: name: empcode . . . etc. fourth field: . . . etc. design tblinvoiceline enter the fields and attributes for the invoice line table as described below. first field: name: invno. (do not make this the key field yet.) data type: short text size: ?? caption: invoice no. required: ?? allow zero length: no indexed: yes (duplicates ok). duplicates are okay in this case because invno is only half of the key for this table. therefore, we can have duplicates of the invno as long as invno is concatenated with prodno. second field: name: prodno . . . etc. make invno and prodno the composite key as follows: hold ctrl and then click on the row selector for each field. with both rows selected, move your pointer and click the key button . both rows now should be selected as the concatenated, or composite, primary key. third field: name: qtysold data type: ?? field size: long integer decimal places: auto page 10 . . . etc. save as tblinvoiceline. close the file so you are in the database main window. establish relationships among tables now that you have created the structure for your tables, you can establish relationships among the tables. the ability to make the tables interact is the feature that makes databases so much more powerful than conventional file systems. if you haven’t already done so, close out of the table’s design view, and select relationships from the relationships ribbon under database tools tab (make sure you save and close all tables before you establish relationships). if the show table box is not visible, use the right click to open the show table dialog box. add all five tables, then close the show table box. move tables (click on heading and drag) into the configuration shown in exhibit 3, the resources-events-agents format. page 11 database concept note an rea diagram explains the relationship between all the entities that are involved in a business process. entities are categorized as resources, events, or agents, and the rea diagram describes the relationship between those entities. resources include cash, inventories. events are business activities such as a sale or a purchase. agents are persons or entities that participate in events, e.g., employees, customers, tax authorities. each table in the relationships window of access represents an entity. the lines between the entities describe the relationship between the entities. there are three types of entity relationships: (1) one-to-one, (2), one-to-many, and (3) many-to-many. for .2.="" validation="" text:="" valid="" commission="" rates="" are="" 0%="" to="" 20%.="" this="" message="" will="" appear="" if="" you="" attempt="" to="" enter="" a="" commission="" rate="" outside="" the="" valid="" range.="" required:="" no="" indexed:="" no="" note="" regarding="" the="" commrate="" field:="" for="" data="" type,="" you="" could="" use="" either="" number="" or="" currency.="" if="" you="" use="" number,="" you="" should="" use="" single="" field="" size="" to="" reduce="" the="" amount="" of="" space="" and="" memory="" used="" by="" the="" system.="" for="" a="" more="" in-depth="" discussion,="" go="" to="" the="" access="" help="" menu="" and="" search="" fieldsize="" properties.="" save="" the="" employee="" table="" with="" the="" name="" tblemployee.="" the="" table’s="" design="" view="" should="" look="" like="" exhibit="" 2="" when="" completed.="" as="" a="" naming="" convention,="" we="" use="" tbl="" as="" a="" prefix="" for="" all="" tables="" and="" frm="" or="" f="" as="" a="" prefix="" for="" all="" forms.="" this="" naming="" convention="" helps="" you="" quickly="" distinguish="" between="" tables="" and="" forms="" in="" pull-down="" menus.="" file="" ⋅="" close.="" for="" the="" remaining="" tables,="" you="" will="" notice="" that="" not="" all="" of="" the="" information="" is="" provided.="" this="" means="" that="" you="" must="" pay="" close="" page="" 7="" attention="" to="" the="" instructions="" that="" were="" provided="" for="" the="" employee="" table,="" and="" then="" make="" appropriate="" choices="" for="" attributes="" (and="" how="" you="" define="" them)="" for="" the="" tables="" that="" follow="" on="" the="" next="" pages.="" page="" 8="" design="" tblinventory="" enter="" the="" fields="" and="" attributes="" for="" the="" inventory="" table="" as="" described="" below.="" first="" field:="" name:="" prodno="" (make="" this="" the="" primary="" key="" field.)="" data="" type:="" short="" text="" size:="" (refer="" to="" exhibit="" 1.)="" caption:="" product="" no.="" required:="" allow="" zero="" length:="" indexed:="" second="" field:="" name:="" proddesc="" .="" .="" .="" etc.="" third="" field:="" name:="" saleprice="" data="" type:="" currency="" format:="" currency="" decimal="" places:="" 2="" caption:="" sale="" price="" default="" value:="" 0="" required:="" yes="" indexed:="" no="" file="" ⋅="" save="" (as="" tblinventory),="" file="" ⋅="" close.="" design="" tblcustomer="" enter="" the="" fields="" and="" attributes="" for="" the="" customer="" table="" as="" described="" below.="" first="" field:="" name:="" custcode="" .="" .="" etc.="" second="" and="" third="" field:="" .="" .="" etc.="" design="" tblinvoice="" enter="" the="" fields="" and="" attributes="" for="" the="" invoice="" table="" as="" described="" below.="" first="" field:="" page="" 9="" name:="" invno="" …etc.="" second="" field:="" name:="" invdate="" data="" type:="" date/time="" .="" .="" .="" etc.="" third="" field:="" name:="" empcode="" .="" .="" .="" etc.="" fourth="" field:="" .="" .="" .="" etc.="" design="" tblinvoiceline="" enter="" the="" fields="" and="" attributes="" for="" the="" invoice="" line="" table="" as="" described="" below.="" first="" field:="" name:="" invno.="" (do="" not="" make="" this="" the="" key="" field="" yet.)="" data="" type:="" short="" text="" size:="" caption:="" invoice="" no.="" required:="" allow="" zero="" length:="" no="" indexed:="" yes="" (duplicates="" ok).="" duplicates="" are="" okay="" in="" this="" case="" because="" invno="" is="" only="" half="" of="" the="" key="" for="" this="" table.="" therefore,="" we="" can="" have="" duplicates="" of="" the="" invno="" as="" long="" as="" invno="" is="" concatenated="" with="" prodno.="" second="" field:="" name:="" prodno="" .="" .="" .="" etc.="" make="" invno="" and="" prodno="" the="" composite="" key="" as="" follows:="" hold="" ctrl="" and="" then="" click="" on="" the="" row="" selector="" for="" each="" field.="" with="" both="" rows="" selected,="" move="" your="" pointer="" and="" click="" the="" key="" button="" .="" both="" rows="" now="" should="" be="" selected="" as="" the="" concatenated,="" or="" composite,="" primary="" key.="" third="" field:="" name:="" qtysold="" data="" type:="" field="" size:="" long="" integer="" decimal="" places:="" auto="" page="" 10="" .="" .="" .="" etc.="" save="" as="" tblinvoiceline.="" close="" the="" file="" so="" you="" are="" in="" the="" database="" main="" window.="" establish="" relationships="" among="" tables="" now="" that="" you="" have="" created="" the="" structure="" for="" your="" tables,="" you="" can="" establish="" relationships="" among="" the="" tables.="" the="" ability="" to="" make="" the="" tables="" interact="" is="" the="" feature="" that="" makes="" databases="" so="" much="" more="" powerful="" than="" conventional="" file="" systems.="" if="" you="" haven’t="" already="" done="" so,="" close="" out="" of="" the="" table’s="" design="" view,="" and="" select="" relationships="" from="" the="" relationships="" ribbon="" under="" database="" tools="" tab="" (make="" sure="" you="" save="" and="" close="" all="" tables="" before="" you="" establish="" relationships).="" if="" the="" show="" table="" box="" is="" not="" visible,="" use="" the="" right="" click="" to="" open="" the="" show="" table="" dialog="" box.="" add="" all="" five="" tables,="" then="" close="" the="" show="" table="" box.="" move="" tables="" (click="" on="" heading="" and="" drag)="" into="" the="" configuration="" shown="" in="" exhibit="" 3,="" the="" resources-events-agents="" format.="" page="" 11="" database="" concept="" note="" an="" rea="" diagram="" explains="" the="" relationship="" between="" all="" the="" entities="" that="" are="" involved="" in="" a="" business="" process.="" entities="" are="" categorized="" as="" resources,="" events,="" or="" agents,="" and="" the="" rea="" diagram="" describes="" the="" relationship="" between="" those="" entities.="" resources="" include="" cash,="" inventories.="" events="" are="" business="" activities="" such="" as="" a="" sale="" or="" a="" purchase.="" agents="" are="" persons="" or="" entities="" that="" participate="" in="" events,="" e.g.,="" employees,="" customers,="" tax="" authorities.="" each="" table="" in="" the="" relationships="" window="" of="" access="" represents="" an="" entity.="" the="" lines="" between="" the="" entities="" describe="" the="" relationship="" between="" the="" entities.="" there="" are="" three="" types="" of="" entity="" relationships:="" (1)="" one-to-one,="" (2),="" one-to-many,="" and="" (3)="" many-to-many.="">
Answered 1 days AfterMar 05, 2023

Answer To: Database Assign - Spring 2020.docxCustomer Invoicing:A Database Management System CaseUsing...

Baljit answered on Mar 07 2023
46 Votes
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here