Access 2016 Advanced

Lesson 11 – Using Macros

Access 2016

U SING P ROPERTIES

Discussion

Properties allow you to specify the appearance and behavior of objects in a database. Objects include tables, queries, forms, and reports, as well as controls within reports or forms.

Property sheets display the properties of a selected object. They have several tabs including Format , Data , Event , and Other that list the properties by group. The groups are the same for every property, but the items in the group change depending on the type of object selected. The All page displays all the properties in a single list. The Format properties allow you to control the appearance of an object, such as color, font, size, and borders. These properties change automatically when you make changes to an object. The Data properties allow you to specify the data source and control items, such as default values. The Event properties allow you to control when an action occurs. The Other properties contain items that do not fit into the other three categories, such as the name of a control when used in a macro or text that appears in the status bar.

C REATING E MBEDDED M ACROS

Discussion

In Access, you can create embedded macros. When you embed a macro in an event provided by a form, report, or control, it is stored in the event’s properties. If you export your form or report to another Access database, the embedded macro is included.

Create an embedded macro using the Macro Builder. Creating a macro using the Macro Builder method requires that you associate the macro with an event, such as On Click or On Close . When you select an Event property, the Build button appears. The Build button opens the Macro Builder.

Page 120

OFFICEPRO, Inc.

Made with FlippingBook - Online magazine maker