Microsoft Access Tutorial B - Cengage Learning

Microsoft Access Tutorial B - Cengage Learning Microsoft Access Tutorial B - Cengage Learning

muricmilorad.files.wordpress.com
from muricmilorad.files.wordpress.com More from this publisher
12.07.2015 Views

those records not in Delaware (DE). Do not perform this operation, but note that, if you did,the set-up would look like that in Figure B-44.Figure B-44Deleting all employees who are not Delaware residentsParameter QueriesAnother type of query, which is a type of Select query, is called a Parameter query. Here isan example: Suppose that your company has 5,000 employees. You might want to query thedatabase to find the same kind of information again and again, only about different employees.For example, you might want to query the database to find out how many hours a particularemployee has worked. To do this, you could run a query previously created andstored, but run it only for a particular employee.AT THE KEYBOARDCreate a Select query with the format shown in Figure B-45.Figure B-45Design of a Parameter query begins as a Select queryIn the Criteria line of the QBE grid for the field SSN, type what is shown in Figure B-46.34 Tutorial B

Figure B-46Design of a Parameter queryNote the square brackets, as you would expect to see in a calculated field.Now run that query. You will be prompted for the specific employee’s SSN, as shown inFigure B-47.Tutorial BFigure B-47Enter Parameter Value dialog boxType in your own SSN. Your query output should resemble that shown in Figure B-48.Figure B-48Output of a Parameter querySEVEN PRACTICE QUERIESThis portion of the tutorial is designed to provide you with additional practice in makingqueries. Before making these queries, you must create the specified tables and enter therecords shown in the Creating Tables section of this tutorial. The output shown for the practicequeries is based on those inputs.AT THE KEYBOARDFor each query that follows, you are given a problem statement and a “scratch area.” You arealso shown what the query output should look like. Follow this procedure: Set up a query inAccess. Run the query. When you are satisfied with the results, save the query and continuewith the next query. You will be working with the EMPLOYEE, HOURS WORKED, andWAGE DATA tables.Microsoft Access Tutorial 35

those records not in Delaware (DE). Do not perform this operation, but note that, if you did,the set-up would look like that in Figure B-44.Figure B-44Deleting all employees who are not Delaware residentsParameter QueriesAnother type of query, which is a type of Select query, is called a Parameter query. Here isan example: Suppose that your company has 5,000 employees. You might want to query thedatabase to find the same kind of information again and again, only about different employees.For example, you might want to query the database to find out how many hours a particularemployee has worked. To do this, you could run a query previously created andstored, but run it only for a particular employee.AT THE KEYBOARDCreate a Select query with the format shown in Figure B-45.Figure B-45Design of a Parameter query begins as a Select queryIn the Criteria line of the QBE grid for the field SSN, type what is shown in Figure B-46.34 <strong>Tutorial</strong> B

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!