SlideShare una empresa de Scribd logo
1 de 25
Adding and Editing Data in Tables Lesson 6 ( ACCESS 2007)
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. 2 Guevarra Institute of Technology
Adding Records to Tables When you enter records into your table, you are populating the database. In Access 2007, you can do this a few different ways. 3 Guevarra Institute of Technology
To Add Records in the New Record Row: Click the record row with the asterisk that appears at the bottom of the table. Type the data into the appropriate fields. Hit Enter or the Tab key to move to the next field. 4 Guevarra Institute of Technology
To Add Records with the New Record Navigation Button: Click the New Record button in the navigation bar. The navigation bar is located in the bottom left corner of the open object pane. Type the data into the appropriate fields. Hit Enter or the Tab key to move to the next field. 5 Guevarra Institute of Technology
To Add Records with the New Record Command: Click the New Record command in the Records group in the Ribbon. Type the data into the appropriate fields. Hit the Enter or the Tab key to move to the next field. 6 Guevarra Institute of Technology
Editing Records in Tables 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. 7 Guevarra Institute of Technology
To Edit a Record Directly: Scroll through the records or use the Navigation Buttons in the navigation bar to find the record to edit. 8 Guevarra Institute of Technology
Click the cell that contains the information that must be edited. A pencil icon appears to indicate edit mode. Type the new information into the field Click outside of the record row to apply the change. 9 Guevarra Institute of Technology
To Edit a Record using Find and Replace: Click the Find command in the Find group on the Ribbon. 10 Guevarra Institute of Technology
The Find and Replace dialogue box opens. Tell Access what to find by typing it into the Find What: area. Type the replace term in the Replace With: area. 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. Tell Access what to Match: Any part of the field, the whole field, or just the start of the field. Tell Access how to Search: Up finds records above the cursor, Down finds records below the cursor, and All searches all records. Click on one of the action options: 11 Guevarra Institute of Technology
Click on one of the action options: Find Next will find the next instance of the word in the table. Replace will put the new word into the table, overwriting what is currently there. Use Cancel to stop the edit process. ,[object Object],12 Guevarra Institute of Technology
To Copy and Paste a Record: Select the record that you want to copy. Right click and select Copy. Select the new record row. Then right click and select Paste. The record information appears, with a new record ID number. 13 Guevarra Institute of Technology
To Delete a Record: Select the record that you want to delete. Then, right click and select Delete Record A dialog box appears, telling you the action can not be undone and asking if you are sure you want to delete the ,[object Object],14 Guevarra Institute of Technology
Record Numbering after Deleting Records 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. 15 Guevarra Institute of Technology
Data Validation 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. 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. Access 2007 allows you to set field properties and data validation rules, to force the person entering data to follow a specific format. 16 Guevarra Institute of Technology
Data Types and Validation Rules 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. Data validation is accomplished by setting data validation rules and other field properties for various fields.  17 Guevarra Institute of Technology
Setting Data Validation Rules In Design View, highlight the field that requires a validation rule. 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. 18 Guevarra Institute of Technology
Use Expression Builder to Enter Validation Rule 19 Guevarra Institute of Technology
Validation Rule for Category Field 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. 20 Guevarra Institute of Technology
Validation Text 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. 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: 21 Guevarra Institute of Technology
Validation Text for Category Field 22 Guevarra Institute of Technology
The following image shows the resulting error message that the user would see when they have broken the Category validation rule: 23 Guevarra Institute of Technology
Using Field Properties to Ensure Data Integrity Another way to ensure data integrity is by setting field properties such as Field Size, Format, and Required. 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. 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. 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. These are just some ways Access helps you ensure that data being entered into your database is valid. 24 Guevarra Institute of Technology
Challenge Open the database, and add records using the new record navigation button Add a record using the New Record command in the Ribbon Edit a record using the Find and Replace command. Copy and Paste a record in one of the tables 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. 25 Guevarra Institute of Technology

Más contenido relacionado

La actualidad más candente

Tutorial for using SQL in Microsoft Access
Tutorial for using SQL in Microsoft AccessTutorial for using SQL in Microsoft Access
Tutorial for using SQL in Microsoft Access
mcclellm
 
Lesson 10 - Sorting , Grouping and Filtering Cells
Lesson 10 - Sorting , Grouping and Filtering CellsLesson 10 - Sorting , Grouping and Filtering Cells
Lesson 10 - Sorting , Grouping and Filtering Cells
guevarra_2000
 
Ms access notes
Ms access notesMs access notes
Ms access notes
IKIARA
 
Basic introduction to ms access
Basic introduction to ms accessBasic introduction to ms access
Basic introduction to ms access
jigeno
 

La actualidad más candente (20)

MS Access 2010 tutorial 5
MS Access 2010 tutorial 5MS Access 2010 tutorial 5
MS Access 2010 tutorial 5
 
MS Access 2010 tutorial 4
MS Access 2010 tutorial 4MS Access 2010 tutorial 4
MS Access 2010 tutorial 4
 
Microsoft Office Excel 2003 Sorting And Filtering
Microsoft Office Excel 2003 Sorting And FilteringMicrosoft Office Excel 2003 Sorting And Filtering
Microsoft Office Excel 2003 Sorting And Filtering
 
Advanced Filter in Excel
Advanced Filter in ExcelAdvanced Filter in Excel
Advanced Filter in Excel
 
MS Access 2010 tutorial 3
MS Access 2010 tutorial 3MS Access 2010 tutorial 3
MS Access 2010 tutorial 3
 
Tutorial for using SQL in Microsoft Access
Tutorial for using SQL in Microsoft AccessTutorial for using SQL in Microsoft Access
Tutorial for using SQL in Microsoft Access
 
Basic Access Notes
Basic Access NotesBasic Access Notes
Basic Access Notes
 
creating data
creating datacreating data
creating data
 
Lesson 10 - Sorting , Grouping and Filtering Cells
Lesson 10 - Sorting , Grouping and Filtering CellsLesson 10 - Sorting , Grouping and Filtering Cells
Lesson 10 - Sorting , Grouping and Filtering Cells
 
Lecture2 slides
Lecture2 slidesLecture2 slides
Lecture2 slides
 
Working with Star Office Base - R.D.Sivakumar
Working with Star Office Base - R.D.SivakumarWorking with Star Office Base - R.D.Sivakumar
Working with Star Office Base - R.D.Sivakumar
 
Ms access notes
Ms access notesMs access notes
Ms access notes
 
Basic introduction to ms access
Basic introduction to ms accessBasic introduction to ms access
Basic introduction to ms access
 
Access 2007
Access 2007Access 2007
Access 2007
 
Excel chapter-9
Excel chapter-9Excel chapter-9
Excel chapter-9
 
Microsoft Access Notes 2007 Ecdl
Microsoft Access Notes 2007 EcdlMicrosoft Access Notes 2007 Ecdl
Microsoft Access Notes 2007 Ecdl
 
Integration with Office Automation Applications - R.D.Sivakumar
Integration with Office Automation Applications - R.D.SivakumarIntegration with Office Automation Applications - R.D.Sivakumar
Integration with Office Automation Applications - R.D.Sivakumar
 
PPT On MS-Access 2007 | Full Concepts |
PPT On MS-Access 2007 | Full Concepts |PPT On MS-Access 2007 | Full Concepts |
PPT On MS-Access 2007 | Full Concepts |
 
Access 2007 lecture notes students
Access 2007 lecture notes studentsAccess 2007 lecture notes students
Access 2007 lecture notes students
 
ppt on data tab in ms.excel
ppt on data tab in ms.excelppt on data tab in ms.excel
ppt on data tab in ms.excel
 

Destacado (6)

Graphical Representation of Data
Graphical Representation of DataGraphical Representation of Data
Graphical Representation of Data
 
Graphical presentation of data
Graphical presentation of dataGraphical presentation of data
Graphical presentation of data
 
Graphical Representation of data
Graphical Representation of dataGraphical Representation of data
Graphical Representation of data
 
Basic Statistical Concepts and Methods
Basic Statistical Concepts and MethodsBasic Statistical Concepts and Methods
Basic Statistical Concepts and Methods
 
Statistical ppt
Statistical pptStatistical ppt
Statistical ppt
 
Chapter 4 presentation of data
Chapter 4 presentation of dataChapter 4 presentation of data
Chapter 4 presentation of data
 

Similar a Lesson Six Entering And Editing Data In Tables

Adding A New Field
Adding A New FieldAdding A New Field
Adding A New Field
EMAINT
 
1 Week 4 What Well Be Working on This Week B.docx
1 Week 4 What Well Be Working on This Week     B.docx1 Week 4 What Well Be Working on This Week     B.docx
1 Week 4 What Well Be Working on This Week B.docx
dorishigh
 
Customizing Forms
Customizing FormsCustomizing Forms
Customizing Forms
EMAINT
 
Operate Spreadsheet applications ppt.pptx
Operate Spreadsheet applications ppt.pptxOperate Spreadsheet applications ppt.pptx
Operate Spreadsheet applications ppt.pptx
Esubalew21
 
Lesson 18 Creating Pivot Tables
Lesson 18 Creating Pivot TablesLesson 18 Creating Pivot Tables
Lesson 18 Creating Pivot Tables
guevarra_2000
 
Manual for Fillable Form
Manual for Fillable FormManual for Fillable Form
Manual for Fillable Form
Clayton Boessen
 
Create a basic performance point dashboard epc
Create a basic performance point dashboard   epcCreate a basic performance point dashboard   epc
Create a basic performance point dashboard epc
EPC Group
 
Developing a ssrs report using a ssas data source
Developing a ssrs report using a ssas data sourceDeveloping a ssrs report using a ssas data source
Developing a ssrs report using a ssas data source
relekarsushant
 

Similar a Lesson Six Entering And Editing Data In Tables (20)

Adding A New Field
Adding A New FieldAdding A New Field
Adding A New Field
 
Priyank Goel PPT.pptx
Priyank Goel PPT.pptxPriyank Goel PPT.pptx
Priyank Goel PPT.pptx
 
Ms Access
Ms AccessMs Access
Ms Access
 
1 Week 4 What Well Be Working on This Week B.docx
1 Week 4 What Well Be Working on This Week     B.docx1 Week 4 What Well Be Working on This Week     B.docx
1 Week 4 What Well Be Working on This Week B.docx
 
Fill series. Data validation. Excel Tutorial
Fill series. Data validation. Excel TutorialFill series. Data validation. Excel Tutorial
Fill series. Data validation. Excel Tutorial
 
Introduction to spss 1
Introduction to spss 1Introduction to spss 1
Introduction to spss 1
 
Wagby R7 Specification
Wagby R7 SpecificationWagby R7 Specification
Wagby R7 Specification
 
Gl13 m7-c1-presentation
Gl13 m7-c1-presentationGl13 m7-c1-presentation
Gl13 m7-c1-presentation
 
Management of database information system
Management of database information systemManagement of database information system
Management of database information system
 
Customizing Forms
Customizing FormsCustomizing Forms
Customizing Forms
 
Operate Spreadsheet applications ppt.pptx
Operate Spreadsheet applications ppt.pptxOperate Spreadsheet applications ppt.pptx
Operate Spreadsheet applications ppt.pptx
 
HARJOT.ppt
HARJOT.pptHARJOT.ppt
HARJOT.ppt
 
MS ACCESS PPT.pptx
MS ACCESS PPT.pptxMS ACCESS PPT.pptx
MS ACCESS PPT.pptx
 
06.ms acess
06.ms acess06.ms acess
06.ms acess
 
Sas visual analytics Training
Sas visual analytics Training Sas visual analytics Training
Sas visual analytics Training
 
Lesson 18 Creating Pivot Tables
Lesson 18 Creating Pivot TablesLesson 18 Creating Pivot Tables
Lesson 18 Creating Pivot Tables
 
Manual for Fillable Form
Manual for Fillable FormManual for Fillable Form
Manual for Fillable Form
 
Pivot Table & Chart_Parakramesh Jaroli_Pacific University
Pivot Table & Chart_Parakramesh Jaroli_Pacific UniversityPivot Table & Chart_Parakramesh Jaroli_Pacific University
Pivot Table & Chart_Parakramesh Jaroli_Pacific University
 
Create a basic performance point dashboard epc
Create a basic performance point dashboard   epcCreate a basic performance point dashboard   epc
Create a basic performance point dashboard epc
 
Developing a ssrs report using a ssas data source
Developing a ssrs report using a ssas data sourceDeveloping a ssrs report using a ssas data source
Developing a ssrs report using a ssas data source
 

Más de guevarra_2000

School personnel sheet2
School personnel sheet2School personnel sheet2
School personnel sheet2
guevarra_2000
 
Ting's report on training of spa
Ting's report on training of spaTing's report on training of spa
Ting's report on training of spa
guevarra_2000
 
Personnel administration
Personnel administrationPersonnel administration
Personnel administration
guevarra_2000
 
Filipino values and culture
Filipino values and cultureFilipino values and culture
Filipino values and culture
guevarra_2000
 
Format for the action research project
Format for the action research projectFormat for the action research project
Format for the action research project
guevarra_2000
 
Action research format
Action research formatAction research format
Action research format
guevarra_2000
 
Recruitmentcompatible 1222798911739370-9
Recruitmentcompatible 1222798911739370-9Recruitmentcompatible 1222798911739370-9
Recruitmentcompatible 1222798911739370-9
guevarra_2000
 
Filipino culture report
Filipino culture reportFilipino culture report
Filipino culture report
guevarra_2000
 
Personnel administration report
Personnel administration reportPersonnel administration report
Personnel administration report
guevarra_2000
 
Leader&cultural diversity
Leader&cultural diversityLeader&cultural diversity
Leader&cultural diversity
guevarra_2000
 
Leader&cultural diversity
Leader&cultural diversityLeader&cultural diversity
Leader&cultural diversity
guevarra_2000
 
Principles of getting job done
Principles of getting job donePrinciples of getting job done
Principles of getting job done
guevarra_2000
 
Leading different personalities
Leading different personalitiesLeading different personalities
Leading different personalities
guevarra_2000
 

Más de guevarra_2000 (20)

School personnel sheet2
School personnel sheet2School personnel sheet2
School personnel sheet2
 
Ting's report on training of spa
Ting's report on training of spaTing's report on training of spa
Ting's report on training of spa
 
Personnel admin
Personnel adminPersonnel admin
Personnel admin
 
Personnel administration
Personnel administrationPersonnel administration
Personnel administration
 
Supervisor's role
Supervisor's roleSupervisor's role
Supervisor's role
 
Filipino values and culture
Filipino values and cultureFilipino values and culture
Filipino values and culture
 
Format for the action research project
Format for the action research projectFormat for the action research project
Format for the action research project
 
Course outline
Course outlineCourse outline
Course outline
 
Course outline
Course outlineCourse outline
Course outline
 
Action research format
Action research formatAction research format
Action research format
 
Recruitment
RecruitmentRecruitment
Recruitment
 
Recruitmentcompatible 1222798911739370-9
Recruitmentcompatible 1222798911739370-9Recruitmentcompatible 1222798911739370-9
Recruitmentcompatible 1222798911739370-9
 
Filipino culture report
Filipino culture reportFilipino culture report
Filipino culture report
 
Personnel administration report
Personnel administration reportPersonnel administration report
Personnel administration report
 
Leader&cultural diversity
Leader&cultural diversityLeader&cultural diversity
Leader&cultural diversity
 
Leader&cultural diversity
Leader&cultural diversityLeader&cultural diversity
Leader&cultural diversity
 
Edleadership
EdleadershipEdleadership
Edleadership
 
Principles of getting job done
Principles of getting job donePrinciples of getting job done
Principles of getting job done
 
Leading different personalities
Leading different personalitiesLeading different personalities
Leading different personalities
 
Success2012
Success2012Success2012
Success2012
 

Último

CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
 

Último (20)

Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 

Lesson Six Entering And Editing Data In Tables

  • 1. Adding and Editing Data in Tables Lesson 6 ( ACCESS 2007)
  • 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. 2 Guevarra Institute of Technology
  • 3. Adding Records to Tables When you enter records into your table, you are populating the database. In Access 2007, you can do this a few different ways. 3 Guevarra Institute of Technology
  • 4. To Add Records in the New Record Row: Click the record row with the asterisk that appears at the bottom of the table. Type the data into the appropriate fields. Hit Enter or the Tab key to move to the next field. 4 Guevarra Institute of Technology
  • 5. To Add Records with the New Record Navigation Button: Click the New Record button in the navigation bar. The navigation bar is located in the bottom left corner of the open object pane. Type the data into the appropriate fields. Hit Enter or the Tab key to move to the next field. 5 Guevarra Institute of Technology
  • 6. To Add Records with the New Record Command: Click the New Record command in the Records group in the Ribbon. Type the data into the appropriate fields. Hit the Enter or the Tab key to move to the next field. 6 Guevarra Institute of Technology
  • 7. Editing Records in Tables 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. 7 Guevarra Institute of Technology
  • 8. To Edit a Record Directly: Scroll through the records or use the Navigation Buttons in the navigation bar to find the record to edit. 8 Guevarra Institute of Technology
  • 9. Click the cell that contains the information that must be edited. A pencil icon appears to indicate edit mode. Type the new information into the field Click outside of the record row to apply the change. 9 Guevarra Institute of Technology
  • 10. To Edit a Record using Find and Replace: Click the Find command in the Find group on the Ribbon. 10 Guevarra Institute of Technology
  • 11. The Find and Replace dialogue box opens. Tell Access what to find by typing it into the Find What: area. Type the replace term in the Replace With: area. 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. Tell Access what to Match: Any part of the field, the whole field, or just the start of the field. Tell Access how to Search: Up finds records above the cursor, Down finds records below the cursor, and All searches all records. Click on one of the action options: 11 Guevarra Institute of Technology
  • 12.
  • 13. To Copy and Paste a Record: Select the record that you want to copy. Right click and select Copy. Select the new record row. Then right click and select Paste. The record information appears, with a new record ID number. 13 Guevarra Institute of Technology
  • 14.
  • 15. Record Numbering after Deleting Records 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. 15 Guevarra Institute of Technology
  • 16. Data Validation 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. 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. Access 2007 allows you to set field properties and data validation rules, to force the person entering data to follow a specific format. 16 Guevarra Institute of Technology
  • 17. Data Types and Validation Rules 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. Data validation is accomplished by setting data validation rules and other field properties for various fields. 17 Guevarra Institute of Technology
  • 18. Setting Data Validation Rules In Design View, highlight the field that requires a validation rule. 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. 18 Guevarra Institute of Technology
  • 19. Use Expression Builder to Enter Validation Rule 19 Guevarra Institute of Technology
  • 20. Validation Rule for Category Field 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. 20 Guevarra Institute of Technology
  • 21. Validation Text 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. 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: 21 Guevarra Institute of Technology
  • 22. Validation Text for Category Field 22 Guevarra Institute of Technology
  • 23. The following image shows the resulting error message that the user would see when they have broken the Category validation rule: 23 Guevarra Institute of Technology
  • 24. Using Field Properties to Ensure Data Integrity Another way to ensure data integrity is by setting field properties such as Field Size, Format, and Required. 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. 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. 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. These are just some ways Access helps you ensure that data being entered into your database is valid. 24 Guevarra Institute of Technology
  • 25. Challenge Open the database, and add records using the new record navigation button Add a record using the New Record command in the Ribbon Edit a record using the Find and Replace command. Copy and Paste a record in one of the tables 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. 25 Guevarra Institute of Technology