Access Workshop Tutorial - updated in 2014

Access Workshop Tutorial - updated in 2014 - Access...

Info icon This preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
Access Workshop Tutorial PART 0: Access Introduction Premiere Product Case PART 1: Workshop Introduction First Step: Please have the following four files ready before you start with this workshop tutorial. o Pet Store ERD o Sales-table only (Access file) o Sales-complete (Access file) Analyze the Pet Store ERD o Understand the relationship between each table. One-to-one, one-to-many, many-to-many o Understand the bridge table “Sale Item” Deletes the many-to-many relationship between Sale and Merchandise Creates 2 one-to-many relationships It has a composite key made up of Sale’s and Merchandise’s primary key. Open the access file “Sale-complete” to view the complete version and add new records. - Click → Go to form → Open sales form. Click arrow button in the bottom left corner to see the different records. - Click the yellow arrow button next to it to add new record. - Practice one example for adding new record. - Close “Sale-complete.” 1
Image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
- Open the access file again while holding the Shift Key until open. - Check Sale Form. Sale table. Sale item table. Sale invoice. PART 2: Creating tables and relationship Open a new empty access file to create tables and relationship o Create Employee table Go to Home, click View → Design View → name the table “Employee” Add the pertaining attributes ( EmployeeID-AutoNumber, LastName- Text, FirstName-Text, Phone-Text, Input Mask, Zipcode-Text, Datehired- Date/Time) Set up Primary Key Click Save Go to Home, click View → Datasheet View Add the pertaining records(see the records below) and click Save EmployeeID LastName FirstName Phone ZipCode DateHired 1 Reeves Keith 402-146-7714 68501 1/29/2001 2 Gibson Bill 919-245-0526 27842 3/31/2001 3 Reasoner Katy 413-414-8275 01101 2/17/2001 4 Hopkins Alan 412-524-9814 15219 2/8/2001 5 James Leisha 407-026-6653 32802 1/6/2001 6 Eaton Anissa 906-446-7957 49930 8/23/2001 o Create Sale table Go to Create, click Table Go to Home, click View → Design View → name the table “Sale” Add the pertaining attributes (SaleID-Number, SaleDate-Date/Time, EmployeeID-Number, CustomerID-Number) 2
Image of page 2
Set up Primary Key Click Save Go to Home, click View → Datasheet View Add the pertaining records (see the records below) and click Save Sale SaleID SaleDate EmployeeID CustomerID 4 8/14/2001 6 28 6 9/15/2001 5 44 7 2/10/2001 4 42 212 4/27/2008 2 5 213 10/5/2010 3 4 o Create the relationship between the two tables Go to Database Tools, click Relationships → Add both tables Drag Employee’s EmployeeID to Sale’s EmployeeID Check enforce referential integrity and click create Remove the relationship between Employee and Sale Change EmployeeID from “6” to “7” in Sale table Then re-establish the relationship between Employee and Sale to see what happens.
Image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern