revieweerrr
revieweerrr
To modify your query, you must enter Design view, the view you used when creating Sometimes you might have fields that contain important criteria, but you
it. There are two ways to switch to Design view: might not need to actually see the information from that field in the final results.
For example, take one of the queries we built in our last lesson: a query to find the
On the Home tab of the Ribbon, click the View command. Select Design View from
names and contact information of customers who had placed orders. We included
the drop-down menu that appears.
Order ID numbers in our query because we wanted to make sure we only pulled
In the bottom-right corner of your Access window, locate the small view icons. Click customers who had placed orders.
the Design View icon, which is the icon farthest to the right. However, we really didn't need to see this information in our final query
results. In fact, if we were just looking for customer names and addresses, seeing
Once in Design view, make the desired changes, then select the Run command to view the order number mixed in there might have been distracting. Fortunately, Access
your updated results. makes it easy to hide fields while still including any criteria they contain.
To hide a field within a query:
Sorting queries
1. Open the query and switch to Design view.
Access allows you to apply multiple sorts at once while you're designing your query. 2. Locate the field you want to hide.
This allows you to view your data exactly the way you want. 3. Click the checkbox in the Show: row to uncheck it.
A sort that includes more than one sorted field is called a multilevel sort. A multilevel
More types of queries
sort allows you to apply an initial sort, then further organize data with additional sorts. For
instance, if you had a table full of customers and their addresses, you might choose to first sort By this point, you should understand how to create a simple one-table or
the records by city, then alphabetically by last name. multi-table query using multiple criteria. Additional queries offer you the ability
to perform even more complex actions with your database. One of these is the
When more than one sort is included in a query, Access reads the sorts from left to
totals query, which lets you perform calculations with your data.
right. This means the leftmost sort will be applied first.
You can simply open an existing parameter query to run it. 4. Choose the fields you want to search for duplicate information by selecting them
and then clicking the right arrow button. Only select fields that should not be
To create a find duplicates query: identical in nonduplicate records. For instance, because we're searching for
1. Select the Create tab on the Ribbon, locate the Queries group, and click the Query duplicate customers we'll only select the First Name and Last Name fields because
Wizard command. it's unlikely that multiple people with the exact same first and last names would
place orders at our bakery.
5. When you've added the desired fields, click Next.
6. Select additional fields to view in the query results. Choose fields that will help you 8. If Access found any duplicate records in your query, they will be displayed in the
distinguish between the duplicate records, and choose which one you want to keep. query results. Review the records and delete any outdated or incorrect records as
In our example, we'll add all of the fields relating to customer addresses, plus the needed.
Phone Number field because records with identical customer names might contain
nonidentical information in this field. When you're satisfied, click Next.
Forms in Access are like display cases in stores that make it easier to view or get the
items that you want. Since forms are objects through which you or other users can add, edit, or
display the data stored in your Access desktop database, the design of your form is an
important aspect. There's a lot you can do design-wise with forms in Microsoft Access. You
can create two basic types of forms −
Bound forms
Unbound forms
To hide a field:
If you want to make a field take up more or less space than one column, you can use the Merge Saving reports
and Split commands. The Merge command combines two or more cells, while the Split
You can save reports in other formats so they'll be viewable outside of Access. This is
command divides a cell.
called exporting a file, and it allows you to view and even modify reports in other formats and
programs.
Access offers options to save your report as an Excel file, text file, PDF, HTML
document, and more. Experiment with the different export options to find the one that best
suits your needs.
To export a report:
From the Home tab, click the View command, then select Print Preview from the drop-
down list. Locate the Data group on the Ribbon. Select one of the file type options, or click
More to see options to save your report as a Word or HTML file.
You can make these changes using formatting techniques and tools similar to the ones
you would use to modify shapes in Word and other Office programs. Simply select the object A dialog box will appear. Select the location where you want to save the report. Enter a
you want to modify while in Layout or Design view and use the formatting options on the file name for the report, then click Publish.
Format tab to customize its appearance.
Reports allow you to organize and present your data in a reader-friendly, visually
appealing format. Access makes it easy to create and customize a report using data from any
query or table in your database.
To print a report:
From the Home tab, click the View command, then select Print Preview from the drop-down
list. Your report will be shown as it will appear on the printed page
Print Preview shows you how your report will appear on the printed page. It also
allows you to modify the way your report is displayed, print it, and even save it as a different
file type.