Databases – exercises in Microsoft Access 2013 Karolina Muszyńska http://www.gcflearnfree.org/access2013
Microsoft Access 2013 tutorial http://www.gcflearnfree.org/access2013 Working with data: Working with tables Working with forms Sorting and filtering records Running queries and reports: Designing a simple query Designing a multi-table query Creating reports
Working with tables Opening a table Modifying data (validation rules) Adding new data and deleting data Navigating through a table Find and replace feature Modifying table appearance Exercises: Add a new record to the Products table In the Products table find all „Lemon” words and replace into „Lime” In the Orders table hide the Customer ID field In the Customers table change the alternate row color into light pink
Working with forms Opening a form Modifying data (validation rules) Adding new data and deleting data Fields/features used in forms (subforms) Exercises: Create a new record using the Orders form Using Customer form find „Smith Jerrod” customer and modify his e-mail address
Sorting and filtering Sorting records Filtering records Exercises: Simple filter Filter from a selection Filter from a search term Filtering numbers and dates Exercises: Filter Customers to show only these whose last name starts with letter „K” Filter Orders to show only these whose Pickup Date is between 1st and 15th December 2013
Designing simple queries Designing one-table queries Choosing a table Choosing fields Setting criteria Setting sorting option Saving query Exercises: Create a new query based on the Customers table Add the following fields: First Name, Last Name, City, Add to Mailing List? Set the following criteria - only customers who are not added to the mailing list, or who live in Garner city should be displayed Sort the query by Last Name, from Z to A Save the query and name it „From Garner or not emailed customers”
Designing multi-table queries Planning a query Choosing tables and fields Checking the join direction linking the tables Setting criteria and/or sorting/hiding/totals Saving query Exercises: Display city, first and last name of all customers whose last name starts with letters „B” and who are from „Raleigh” city and whose order ID is above 30; do not show the order ID field in the query Save the query and name it „Customers B from Raleigh”
Designing multi-table queries Exercises: Open the previously designed query „Customers B from Raleigh”) in the design view Count number of orders placed by each customer Add another Order ID field to the query Add Totals row to the query Set the Totals row in the Orders ID field to Count
Creating reports Choosing a table or a query for the report Adjusting and formatting the report in the Layout view Resizing Deleting unwanted fields Sorting and filtering Printing or exporting reports Exercises: Use the „From Garner or not emailed customers” query and create a report Resize the fields so that all data is visible Sort it by City field ascending Export the report as a pdf