Presentation is loading. Please wait.

Presentation is loading. Please wait.

Microsoft ® Access ® 2010 Training Create tables for a new database.

Similar presentations


Presentation on theme: "Microsoft ® Access ® 2010 Training Create tables for a new database."— Presentation transcript:

1 Microsoft ® Access ® 2010 Training Create tables for a new database

2 Course contents Overview: The essential component Lesson: Includes seven instructional sections Suggested practice tasks Test Quick Reference Card Create tables for a new database

3 Overview: The essential component Create tables for a new database Tables are the essential component of any database. Without them, you dont have a database. In this course, youll learn how to build the tables for a new database. If youre feeling intimidated, relax. We assume youre a beginner, and well show you how to create tables step by step.

4 Course goals 1.Create a table in Datasheet view. 2.Set data types for the fields in the table. 3.Create a table in Design view, and set the primary key and data types for the table. 4.Create a lookup field a field that provides a list of choices. 5.Use Design view to change the values in an existing lookup field. Create tables for a new database

5 Create tables Create tables for a new database Ways to create tables. You need to build an asset tracking database and move away from a spreadsheet thats too big to use. You may be familiar with how to design the tables for your new database – the fields, data types, primary keys, and foreign keys. Now its time to create the tables.

6 Create tables Create tables for a new database Ways to create tables. As a reminder, though, in a relational database, tables store your data. Your data doesnt live anywhere else, and that makes tables the central component of your database. If you dont have tables, you dont have a database. This course shows you how to use the most common tools for building tables: Datasheet view and Design view.

7 Create tables Create tables for a new database Ways to create tables. Heres the process: In Datasheet view, you build a table by clicking a blank field header, selecting a data type, and then entering a field name. All you have to do is click and type, and well show you how. For some tables, you can save time by using Quick Start Fields, predefined sets of fields that meet several common business needs, such as capturing addresses or starting and ending dates. All you have to do is select a set of fields from a menu.

8 Create tables Create tables for a new database Ways to create tables. Heres the process: In contrast to Datasheet view, Design view lets you control every field and property in a table. In this course, youll use it to create a table and to change the values in a lookup field a field that contains a list of choices. Finally, as you go, remember that if you want to publish your database to SharePoint, you have to use Datasheet view to create your tables.

9 Create a table in Datasheet view Create tables for a new database The process, in Datasheet view. Datasheet view provides a visual way to create a table. Start by creating a new, blank database or by adding a new table to an existing database. Either method opens a new table in Datasheet view. Notice that the new table contains a field called ID. Thats your primary key, so you dont need to create one.

10 Create a table in Datasheet view Create tables for a new database The process, in Datasheet view. Datasheet view provides a visual way to create a table. To add your fields, click the first blank field header – the words Click to Add. That starts a menu of data types, and you select a data type for the field. After that, the field header then becomes available for writing, so...

11 Create a table in Datasheet view Create tables for a new database The process, in Datasheet view. Datasheet view provides a visual way to create a table. You just type the field name and press ENTER. Doing that shifts the focus to the next field, where you repeat the process. As you work, remember that if your field names contain more than one word, dont use spaces between the words.

12 Create a table in Datasheet view Create tables for a new database The process, in Datasheet view. Datasheet view provides a visual way to create a table. When youve finished, press CTRL+S, or go to the Quick Access Toolbar and click Save. That starts a Save As dialog box, where you enter a name for the table and then save it.

13 Go faster with Quick Start fields Create tables for a new database Adding Quick Start fields to a table. Quick Start fields are a faster way to build parts of a new table. The fields capture data for common business needs, and all field names and data types are set for you.

14 Go faster with Quick Start fields Create tables for a new database Adding Quick Start fields to a table. With a table open in Datasheet view, click the Fields tab, and in the Add & Delete group, click More Fields. A list appears. Scroll down the list until you see the Quick Start section, click the type of fields you want to use, such as Address, or Name, and... Access adds the fields for you, with field names data types already set.

15 Go faster with Quick Start fields Create tables for a new database Adding Quick Start fields to a table. You can use the new fields right away just start entering data or you can rename them, and remove fields you dont need. Also, you may have noticed what seem to be spaces in the field names. Dont worry, youre not looking at the actual field names. Instead, youre looking at captions, user-friendly text associated with each field name.

16 Create a table in Design view Create tables for a new database Using Design view. Design view allows you to build a table from scratch and set or change every available property for each field. You can also open existing tables in Design view and add, remove, or change fields.

17 Create a table in Design view Create tables for a new database Using Design view. On the Create tab, in the Tables group, click Table Design. In the Field Name column of the designer, enter the names of your table fields. As a rule, the first field you create should be your primary key field. And remember that you dont need to add any foreign key fields now. You can do that when you create your relationships.

18 Create a table in Design view Create tables for a new database Using Design view. In the Data Type column, use the list next to a field name to choose a data type for that field. As always, save your changes and give your new table a name that describes the data it contains. Optionally, use the Field Properties pane to set properties for individual fields.

19 Add and save data Create tables for a new database The process of saving data. As you finish your tables, youll probably enter a few records. Thats a good way to test your tables, and to help make sure youre capturing the right data. Remember a couple of rules along the way.

20 Add and save data Create tables for a new database The process of saving data. When you enter or change data, you never have to click Save to commit the new information to your database. All you have to do is move the focus to another record. To do that in a datasheet, or in a type of form called a multiple-items form, you can click a different row. You can also use the TAB or arrow keys to shift the focus to a new record. Any of those actions will commit new data.

21 Add and save data Create tables for a new database The process of saving data. The same is true for forms. You enter data on the form, and when you navigate to a different record, you commit your data.

22 Use the record navigation buttons Create tables for a new database Access record navigation buttons. Once you create your tables, youll need to know how to use the record navigation buttons. Youll find them in the lower-left corner of your tables, and youll also see them in your query results, and on most of your forms.

23 Use the record navigation buttons Create tables for a new database Access record navigation buttons. You use the buttons to locate data. Use the First record button to go to the first record in a table or query result. Use the Previous record button to go to the previous record. The Current Record box lists the records in sequential order, and it shows you which record you have selected. Use the Next record button to move to the next record.

24 Use the record navigation buttons Create tables for a new database Access record navigation buttons. You use the buttons to locate data. Use the Last record button to move to the last record, and... If you need to add data, click the New (blank) record button.

25 Add a lookup field to a table Create tables for a new database Using the Lookup Wizard. You can sometimes use a lookup field instead of a table. For example, say you need to record the locations of your companys assets. If you have a large number of locations, such as offices on several floors, youd store that data in a table because its easier to manage. But if you only have a few, it makes sense to store those options in a lookup field.

26 Add a lookup field to a table Create tables for a new database Using the Lookup Wizard. A lookup field can store a list of options internally, or it can look up data from a field in another table. The following steps explain how to create a lookup field that stores options internally, in what Access calls a value list.

27 Add a lookup field to a table Create tables for a new database Using the Lookup Wizard. With your table open in Datasheet view, click the Fields tab, and in the Add & Delete group, click More Fields. In the menu, click Lookup & Relationship. That starts the Lookup Wizard. On the first page of the wizard, click I will type in the values that I want and click Next.

28 Add a lookup field to a table Create tables for a new database Using the Lookup Wizard. On the next page of the wizard, make sure the Number of columns box contains a 1 and then enter your options in the grid, one option per row. On the third page of the wizard, enter a name for the new field and click Finish.

29 Suggestions for practice 1.Create a Suppliers table in Datasheet view. 2.Create a Support table in Design view. 3.Create an Assets table. 4.Create lookup fields in Datasheet view. 5.Create lookup fields in Design view. Create tables for a new database Online practiceOnline practice (requires Access 2010)

30 Test question 1 When you create a new table in Datasheet view, you must define a primary key field. (Pick one answer.) Create tables for a new database 1.True. 2.False.

31 Test question 1 Create tables for a new database The ID field in the new table acts as the primary key. You can change the field name, or replace the field with another primary key, but a new datasheet always contains a primary key. When you create a new table in Datasheet view, you must define a primary key field. Answer: 2. False.

32 Test question 2 You cant use the Lookup Wizard to alter an existing value list. (Pick one answer.) Create tables for a new database 1.True. 2.False.

33 Test question 2 Create tables for a new database You use Design view to alter a value list. You cant use the Lookup Wizard to alter an existing value list. Answer: 1. True.

34 Test question 3 When you use Quick Start fields to help create a table, you must set data types for those fields. (Pick one answer.) Create tables for a new database 1.True. 2.False.

35 Test question 3 Create tables for a new database You can change the data types if you need to, but theyre set for you. When you use Quick Start fields to help create a table, you must set data types for those fields. Answer: 2. False.

36 Test question 4 Which of the following is the correct syntax for a value list? (Pick one answer.) Create tables for a new database 1.Option 1,Option 2,Option 3 2.Option 1;Option 2;Option 3 3.Option 1:Option 2:Option 3

37 Test question 4 Create tables for a new database Place each option between double quotes and separate each option with a semicolon. Which of the following is the correct syntax for a value list? Answer: 2. Option 1;Option 2;Option 3

38 Quick Reference Card For a summary of the tasks covered in this course, view the Quick Reference Card. Quick Reference Card Create tables for a new database

39 Using this template See the notes pane or view the full notes page (View tab, Notes Page) for detailed help on this template.


Download ppt "Microsoft ® Access ® 2010 Training Create tables for a new database."

Similar presentations


Ads by Google