Microsoft Access 2010 Lesson 2 Access Lesson 2 Lesson Plans Michele Smith – North Buncombe High School, Weaverville, NC 28787
Learning Objectives Create a database Creating a table 1 Create a database 2 Creating a table 3 Modify a table in Design View 4 Add & edit records 5 Print tables 6 Move & delete fields 7 Delete records Access Lesson 2 Lesson Plans Michele Smith – North Buncombe High School, Weaverville, NC 28787
Planning a Database Determine what information to store in the database Determine a logical arrangement of tables Gather all information that will be a part of the database Decide which information to store in each table Discuss the database with all users Access Lesson 2 Lesson Plans Michele Smith – North Buncombe High School, Weaverville, NC 28787
Sketching a database Sketching a database out on paper will aid in determining various pieces of information that are needed for the database. Access Lesson 2 Lesson Plans Michele Smith – North Buncombe High School, Weaverville, NC 28787
Database Templates A database template(s) allows the user to accomplish various tasks! The Microsoft Access File Tab allows the user to create a New Database, blank database or a database from online templates. Access Lesson 2 Lesson Plans Michele Smith – North Buncombe High School, Weaverville, NC 28787
Creating a table Access Lesson 2 Lesson Plans Michele Smith – North Buncombe High School, Weaverville, NC 28787
Creating a table – con’t An empty table appears! Doesn’t contain any defined fields. Can use groups under the “Table Tools” tab to create a table manually. Access Lesson 2 Lesson Plans Michele Smith – North Buncombe High School, Weaverville, NC 28787
Define the Fields & Data Types Define Field Names – may be 64 characters in length Data Types Access Lesson 2 Lesson Plans Michele Smith – North Buncombe High School, Weaverville, NC 28787
Guidelines for Field Names Access Lesson 2 Lesson Plans Michele Smith – North Buncombe High School, Weaverville, NC 28787
Data Types Access Lesson 2 Lesson Plans Michele Smith – North Buncombe High School, Weaverville, NC 28787
Accuracy Table structure information must be accurate in order to ensure the table works properly! Is this phone number correct? The computer doesn’t know it should be 778-645-1234 Access Lesson 2 Lesson Plans Michele Smith – North Buncombe High School, Weaverville, NC 28787
The Description Field It is important to provide a description for each field to assist future users. Access Lesson 2 Lesson Plans Michele Smith – North Buncombe High School, Weaverville, NC 28787
Primary Key – unique identifier When you create a new table in Datasheet view, Access automatically creates a primary key for you and assigns it a field name of "ID" and the AutoNumber data type. The field is hidden by default in Datasheet View, but you can see the field if you switch to Design View. Access Lesson 2 Lesson Plans Michele Smith – North Buncombe High School, Weaverville, NC 28787
Primary Key Video Access Lesson 2 Lesson Plans Michele Smith – North Buncombe High School, Weaverville, NC 28787
Examples of Good Primary Keys Access Lesson 2 Lesson Plans Michele Smith – North Buncombe High School, Weaverville, NC 28787