13
Introduction to Access [CREATING BASIC QUERIES] 1 (C) Richard Butler 2010 http://www.12MinuteGuides.com These notes are copyright Richard Butler of www.12MinuteGuides.com The guides are given for educational purposes are designed to be read within 12 minutes. Please note the author supplies these guides to you as is. To keep updated on these guides ensure you sign up to kept informed. To your greater educational success Richard Butler Author 12MinuteGuides.com

Creating queries in_access_2007_ecdl

Embed Size (px)

DESCRIPTION

learn how to create basic queries in Access 2007 Notes suitable for EDCL module 5 exams

Citation preview

Page 1: Creating queries in_access_2007_ecdl

Introduction to Access [CREATING BASIC QUERIES]

1 (C) Richard Butler 2010 http://www.12MinuteGuides.com

These notes are copyright Richard Butler of www.12MinuteGuides.com The guides are given for educational purposes are designed to be read within 12 minutes. Please note the author supplies these guides to you as is. To keep updated on these guides ensure you sign up to kept informed. To your greater educational success Richard Butler Author 12MinuteGuides.com

Page 2: Creating queries in_access_2007_ecdl

Introduction to Access [CREATING BASIC QUERIES]

2 (C) Richard Butler 2010 http://www.12MinuteGuides.com

Getting Started With Queries

The following box appears:

Press OK

Page 3: Creating queries in_access_2007_ecdl

Introduction to Access [CREATING BASIC QUERIES]

3 (C) Richard Butler 2010 http://www.12MinuteGuides.com

From this screen choose the fields you wish to use in your query To select all fields click on the >> button This brings all fields over

Page 4: Creating queries in_access_2007_ecdl

Introduction to Access [CREATING BASIC QUERIES]

4 (C) Richard Butler 2010 http://www.12MinuteGuides.com

Your screen should look like this

Page 5: Creating queries in_access_2007_ecdl

Introduction to Access [CREATING BASIC QUERIES]

5 (C) Richard Butler 2010 http://www.12MinuteGuides.com

The next screen can be left as it is

Page 6: Creating queries in_access_2007_ecdl

Introduction to Access [CREATING BASIC QUERIES]

6 (C) Richard Butler 2010 http://www.12MinuteGuides.com

The final screen appears:

Once you click finish the following screen will appear. Note your query has been set up now you have to actually tell the database what you are searching for.

Page 7: Creating queries in_access_2007_ecdl

Introduction to Access [CREATING BASIC QUERIES]

7 (C) Richard Butler 2010 http://www.12MinuteGuides.com

Decide what you are to search for and enter in the appropriate field. Remember if for example you are looking for dominant fish you must enter in a type of fish that is contained in the database listing.

This query will return information for any lake with Trout in it. Click on the Run button to run the report:

It will appear as follows:

Page 8: Creating queries in_access_2007_ecdl

Introduction to Access [CREATING BASIC QUERIES]

8 (C) Richard Butler 2010 http://www.12MinuteGuides.com

Look at the left hand side of the screen You will see a new icon which is the query icon:

Close of the query by clicking on the box in the right corner of the right hand window:

If you don’t do this it may cause an error message to appear Save the query when asked:

Page 9: Creating queries in_access_2007_ecdl

Introduction to Access [CREATING BASIC QUERIES]

9 (C) Richard Butler 2010 http://www.12MinuteGuides.com

Now that you have the query you can create a report based on it Go to the Create ribbon and choose the Report Wizard as shown below:

The following appears:

Ensure you choose the query you wish to create the report from. Bring all the fields across as before and then click on Next

Page 10: Creating queries in_access_2007_ecdl

Introduction to Access [CREATING BASIC QUERIES]

10 (C) Richard Butler 2010 http://www.12MinuteGuides.com

The following appears:

Click Next

Page 11: Creating queries in_access_2007_ecdl

Introduction to Access [CREATING BASIC QUERIES]

11 (C) Richard Butler 2010 http://www.12MinuteGuides.com

From the following screen click Next

Page 12: Creating queries in_access_2007_ecdl

Introduction to Access [CREATING BASIC QUERIES]

12 (C) Richard Butler 2010 http://www.12MinuteGuides.com

From the final screen click Finish

The report is now created and will appear on the left hand side:

Page 13: Creating queries in_access_2007_ecdl

Introduction to Access [CREATING BASIC QUERIES]

13 (C) Richard Butler 2010 http://www.12MinuteGuides.com

Modifying A Query You can modify existing queries by double clicking on them from the left hand side of the screen When it appears you may need to go into design view Do this by clicking on the button below found on the Home ribbon

In this example we are going to run a query based on three criteria. All criteria must be satisfied in order for results to be show. The criteria below are: Distance of lake from hotel 4km Dominant fish Trout Boats for hire Yes The query would look like the one below. Note there is no need to put the km in after the 4

Entering in the above and press the Run icon will display the results (if any)