- The Bethesda Car Rental1 database should still be opened.
In the Database Window, click the Tables button and click Cars to select it
- On the menu bar, click Insert -> Query
- In the New Query dialog box, double-click Design View.
Notice that the Cars table is already selected as the originating object
- In the list of fields, double-click Make, Model, NbrOfDoors, AMFM, Cassette, and CDPlayer
- To view the query, on the Query Design toolbar, click the View button

- After viewing the query, to switch back to Design View, on the Query Datasheet toolbar, click the View button

- To replace a field, in the lower section of the Design View, click NbrOfDoors and notice that an arrow of a combo box appears
- Click the arrow of the NbrOfDoors combo box and select CarYear

- Scroll to the right on the lower section of the view to display the first empty field
- To add a new field, click CDPlayer and press Tab. Notice the combo
box
- Press and hold Alt, then press the down arrow key and release Alt.
This displays the list of the combo box
- Press the down arrow key a few times until Picture is selected, then
press Enter
- Scroll back to the left
- To insert a field, drag TagNumber from the Cars list and drop it on top of
AMFM
- Notice that the newly inserted field has been added to the left of the field it was dropped on
(In the same way, you can select various fields and decide to insert them to the left of a field of your
choice)
- Scroll to the right side of the lower section of the view until you can see Picture.
To delete a field, in the lower section of the view, position the mouse on the
tiny horizontal bar above Picture until the mouse turns into a down pointing arrow:

- Click. Notice that the whole column is selected
- Press Delete. Notice that the field is removed from the query
- To view the query, click the View button

- To switch the query back to Design View, on the main menu, click
View -> Design View
- Scroll back to the left of the lower view and make sure you can see
the TagNumber and the Make columns.
In the lower section of the view, click the bar on top of TagNumber and release the
mouse
- Click the TagNumber header bar again and hold your mouse down
- Notice a vertical line that guides you. Drag left until the vertical guiding line gets between Make and Model:

- Release the mouse
- To view the query, on the Query Design toolbar, click the View
button

- Switch the query back to Design View
- Scroll the lower section right to see CDPlayer
- Click and hold your mouse on the bar on top of AMFM. Then drag right to CDPlayer to select the AMFM, the Cassette, and the CDPlayer columns. Then release the mouse
- Click and hold your mouse again on the bar on top of AMFM
- Drag left until the vertical line is between the Model and the CarYear columns
- Then release the mouse
- To run the query, right-click its title bar and click Datasheet View
- To close the query, double-click its system icon
- A message asks you whether you want to save the query, click No (this was a test; it was just a test…)
|