Adding fields to the QBE grid
The
upper pane of the Query Design window (Design view)
displays a query's data sources. If you want the query
to act upon a field, you must drag that field to the QBE
grid (the lower pane). Fortunately, Access supports a
number of ways to do this:
-
The most obvious way is to type the field's name
into a Field cell. As you type, Access selects the
most appropriate field name from the data source. If
there's more than one table and the same field name
occurs in both, you must also specify the source
table in the Table cell. If you don't, Access
defaults to the first table (left to right in the
upper pane) that contains the field.
-
Perhaps the most efficient and trouble-free method
is to select the field from the Field cell's
drop-down list. Doing so eliminates errors. If there
are multiple tables, the list displays all the
fields from all the tables, using the table.field
format, which can make this method a little more
difficult to use.
-
You can use the drag-and-drop method to drag a field
from a field list in the upper pane to a column in
the QBE grid. In the field list, click the field you
want to add to the query. Then, while holding down
the mouse, drag the field to the QBE grid.
-
A quick double-click will also do the trick. Simply
double-click a field to add it to the QBE grid.
To
quickly add all the fields to the query grid,
double-click the field list's title bar to select all of
the fields. Then, simply drag the entire block of fields
to the grid. Access will fill the grid in the order the
fields occur in the list.