Microsoft Access 2010 Bible

(Rick Simeone) #1

Part II: Programming Microsoft Access


572


Moving macro items
In Figure 15.16, two more If blocks have been added to the macro. Each If block sets a separate
local variable and doesn’t do much else. Let’s assume this arrangement isn’t going to work for this
macro and these items must be rearranged.

FIGURE 15.16

A simple macro with three If blocks


Macro items can be dragged into a new position with the mouse. This process is a little tricky
because it’s very easy to drag the wrong item away from its proper position. Carefully position the
mouse pointer near the top of the target item, click with the mouse, and drag the item to its new
location.

In Figure 15.17, the Chevrolet block is being dragged to a position between the BMW and Ford
blocks. A horizontal bar (labeled “Position indicator” in Figure 15.17) indicates where the dragged
item will be dropped when the mouse button is released. A gray shadow box indicates that you’re
dragging an item to a new location. Although hard to see in this figure, the shadow box contains
the text of the dragged item so that you know what you’re actually dragging with the mouse.
Free download pdf