Adding and Editing Data in Tables<br />Lesson 6 ( ACCESS 2007)<br />
Access 2007 databases hold the actual data records inside tables. You can add, edit, and delete records directly from thes...
Adding Records to Tables<br />When you enter records into your table, you are populating the database. In Access 2007, you...
To Add Records in the New Record Row:<br />Click the record row with the asterisk that appears at the bottom of the table....
To Add Records with the New Record Navigation Button:<br />Click the New Record button in the navigation bar. The navigati...
To Add Records with the New Record Command:<br />Click the New Record command in the Records group in the Ribbon.<br />Typ...
Editing Records in Tables<br />Sometimes it is necessary to edit records in the database. Like with every other task in Ac...
To Edit a Record Directly:<br />Scroll through the records or use the Navigation Buttons in the navigation bar to find the...
Click the cell that contains the information that must be edited. A pencil icon appears to indicate edit mode.<br />Type t...
To Edit a Record using Find and Replace:<br />Click the Find command in the Find group on the Ribbon.<br />10<br />Guevarr...
The Find and Replace dialogue box opens.<br />Tell Access what to find by typing it into the Find What: area.<br />Type th...
Click on one of the action options:<br />Find Next will find the next instance of the word in the table.<br />Replace will...
To Copy and Paste a Record:<br />Select the record that you want to copy. Right click and select Copy.<br />Select the new...
To Delete a Record:<br />Select the record that you want to delete. Then, right click and select Delete Record<br />A dial...
Record Numbering after Deleting Records<br />When you delete a record, that record number is permanently deleted from the ...
Data Validation<br />Data Validation is a very important database concept. It is the process by which Access tests the dat...
Data Types and Validation Rules<br />Data Validation begins when data types are set during the process of building tables ...
Setting Data Validation Rules<br />In Design View, highlight the field that requires a validation rule.<br />In the Field ...
Use Expression Builder to Enter Validation Rule<br />19<br />Guevarra Institute of Technology<br />
Validation Rule for Category Field<br />Validation rules work most easily with numeric fields. Rules for text fields requi...
Validation Text<br />Validation Text is a specialized error message that you can set to have Access tell the person enteri...
Validation Text for Category Field<br />22<br />Guevarra Institute of Technology<br />
The following image shows the resulting error message that the user would see when they have broken the Category validatio...
Using Field Properties to Ensure Data Integrity<br />Another way to ensure data integrity is by setting field properties s...
Challenge<br />Open the database, and add records using the new record navigation button<br />Add a record using the New R...
Upcoming SlideShare
Loading in …5
×

Lesson Six Entering And Editing Data In Tables

792
-1

Published on

Published in: Technology, Education
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
792
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
84
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Lesson Six Entering And Editing Data In Tables

  1. 1. Adding and Editing Data in Tables<br />Lesson 6 ( ACCESS 2007)<br />
  2. 2. Access 2007 databases hold the actual data records inside tables. You can add, edit, and delete records directly from these tables. This lesson will show you how to work in the tables to add new records, as well as how to edit existing records using commands like Copy and Paste and Find and Replace. It will also discuss the dangers involved in deleting records from a table and the importance of setting validation rules and other field properties and to ensure that data is valid.<br />2<br />Guevarra Institute of Technology<br />
  3. 3. Adding Records to Tables<br />When you enter records into your table, you are populating the database. In Access 2007, you can do this a few different ways.<br />3<br />Guevarra Institute of Technology<br />
  4. 4. To Add Records in the New Record Row:<br />Click the record row with the asterisk that appears at the bottom of the table.<br />Type the data into the appropriate fields.<br />Hit Enter or the Tab key to move to the next field.<br />4<br />Guevarra Institute of Technology<br />
  5. 5. To Add Records with the New Record Navigation Button:<br />Click the New Record button in the navigation bar. The navigation bar is located in the bottom left corner of the open object pane.<br />Type the data into the appropriate fields.<br />Hit Enter or the Tab key to move to the next field.<br />5<br />Guevarra Institute of Technology<br />
  6. 6. To Add Records with the New Record Command:<br />Click the New Record command in the Records group in the Ribbon.<br />Type the data into the appropriate fields.<br />Hit the Enter or the Tab key to move to the next field.<br />6<br />Guevarra Institute of Technology<br />
  7. 7. Editing Records in Tables<br />Sometimes it is necessary to edit records in the database. Like with every other task in Access 2007, this can be done several different ways.<br />7<br />Guevarra Institute of Technology<br />
  8. 8. To Edit a Record Directly:<br />Scroll through the records or use the Navigation Buttons in the navigation bar to find the record to edit.<br />8<br />Guevarra Institute of Technology<br />
  9. 9. Click the cell that contains the information that must be edited. A pencil icon appears to indicate edit mode.<br />Type the new information into the field<br />Click outside of the record row to apply the change.<br />9<br />Guevarra Institute of Technology<br />
  10. 10. To Edit a Record using Find and Replace:<br />Click the Find command in the Find group on the Ribbon.<br />10<br />Guevarra Institute of Technology<br />
  11. 11. The Find and Replace dialogue box opens.<br />Tell Access what to find by typing it into the Find What: area.<br />Type the replace term in the Replace With: area.<br />Tell Access where to look with the Look In: drop down list. Tip--The first choice in, the drop down is the field you were last in in the table.<br />Tell Access what to Match: Any part of the field, the whole field, or just the start of the field.<br />Tell Access how to Search: Up finds records above the cursor, Down finds records below the cursor, and All searches all records.<br />Click on one of the action options:<br />11<br />Guevarra Institute of Technology<br />
  12. 12. Click on one of the action options:<br />Find Next will find the next instance of the word in the table.<br />Replace will put the new word into the table, overwriting what is currently there.<br />Use Cancel to stop the edit process.<br /><ul><li>CAUTION: DO NOT use Replace All , as it will overwrite every instance of the Find term in the table, which can have a serious impact on your data.</li></ul>12<br />Guevarra Institute of Technology<br />
  13. 13. To Copy and Paste a Record:<br />Select the record that you want to copy. Right click and select Copy.<br />Select the new record row. Then right click and select Paste. The record information appears, with a new record ID number.<br />13<br />Guevarra Institute of Technology<br />
  14. 14. To Delete a Record:<br />Select the record that you want to delete. Then, right click and select Delete Record<br />A dialog box appears, telling you the action can not be undone and asking if you are sure you want to delete the<br /><ul><li>There may be other records that rely on the record you are trying to delete. DO NOT delete a record without knowing how it will impact the rest of your database.</li></ul>14<br />Guevarra Institute of Technology<br />
  15. 15. Record Numbering after Deleting Records<br />When you delete a record, that record number is permanently deleted from the database table. If you delete the last record from a table, and then add a new record, your new record numbers will appear to be out of sequence.<br />15<br />Guevarra Institute of Technology<br />
  16. 16. Data Validation<br />Data Validation is a very important database concept. It is the process by which Access tests the data that is being entered into the database, to make sure it is in an acceptable, or valid, format.<br />Imagine that one of your database users has entered an order date of January 4, 2008 in the month/date/year format, as 01/04/2008. Another user has entered an order placed on that same date in the day/month/year format, as 04/01/2008. Now, if the database is tracking all sales for the month of January 2008, it may not show both orders as placed in January, even though both were placed on the same date.<br />Access 2007 allows you to set field properties and data validation rules, to force the person entering data to follow a specific format.<br />16<br />Guevarra Institute of Technology<br />
  17. 17. Data Types and Validation Rules<br />Data Validation begins when data types are set during the process of building tables and fields. For example, if a field data type had been set to Currency and a text value is entered in that table field during data entry, Access will not accept an invalid format and will display a validation error, like the one below.<br />Data validation is accomplished by setting data validation rules and other field properties for various fields. <br />17<br />Guevarra Institute of Technology<br />
  18. 18. Setting Data Validation Rules<br />In Design View, highlight the field that requires a validation rule.<br />In the Field Properties section at the bottom half of the window, set your validation rule using the Expression Builder. The expression builder offers common syntax to set up a data validation rule.<br />18<br />Guevarra Institute of Technology<br />
  19. 19. Use Expression Builder to Enter Validation Rule<br />19<br />Guevarra Institute of Technology<br />
  20. 20. Validation Rule for Category Field<br />Validation rules work most easily with numeric fields. Rules for text fields require you to enclose each acceptable value inside its own quotation marks, separating them with Or, as seen above.<br />20<br />Guevarra Institute of Technology<br />
  21. 21. Validation Text<br />Validation Text is a specialized error message that you can set to have Access tell the person entering data the specific way you would like them to enter it.<br />To set the Validation Text, enter the error message exactly as you want it to appear to your user in the row directly beneath the Validation Rule row in the Field Properties section of Design View. For the validation rule that we set for Category, you would set the validation text like this:<br />21<br />Guevarra Institute of Technology<br />
  22. 22. Validation Text for Category Field<br />22<br />Guevarra Institute of Technology<br />
  23. 23. The following image shows the resulting error message that the user would see when they have broken the Category validation rule:<br />23<br />Guevarra Institute of Technology<br />
  24. 24. Using Field Properties to Ensure Data Integrity<br />Another way to ensure data integrity is by setting field properties such as Field Size, Format, and Required.<br />Field Size can be set to hold a specific number of characters, up to as many as 255 for text fields. If you were using a text field to hold the two letter state postal abbreviation, the field size could be set to 2 to ensure that no one enters a full state name into this field.<br />The Format field property can be set to display text or numbers in a standardized way. For example, text can be set to show as all uppercase and numbers can be set to show scientific numbers, percentages, or decimals.<br />Set the Required property to Yes if you want the person entering data to be required to enter something in the field. Choose No if the person entering data is allowed to leave the field blank.<br />These are just some ways Access helps you ensure that data being entered into your database is valid.<br />24<br />Guevarra Institute of Technology<br />
  25. 25. Challenge<br />Open the database, and add records using the new record navigation button<br />Add a record using the New Record command in the Ribbon<br />Edit a record using the Find and Replace command.<br />Copy and Paste a record in one of the tables<br />Set a validation rule and validation text for a field in one of your tables. Then, break the rule when entering data and see the resulting message.<br />25<br />Guevarra Institute of Technology<br />
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×