• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 10. The Real Scoop on Objects, P... > Special Properties That Refer to Obj...

Special Properties That Refer to Objects

VBA offers the convenience of performing actions on the active control, the active form, and other specially recognized objects. The following is a list of special properties that refer to objects in the Access Object Model:

  • The ActiveControl property refers to the control that has focus on a screen object, form, or report.

  • The ActiveForm property refers to the form that has focus.

  • The ActiveReport property refers to the report that has focus.

  • The Form property refers to the form that a subform is contained in or to the form itself.

  • Me refers to the form or report where code is currently executing.

  • Module refers to the module of a form or report.

  • The Parent property refers to the form, report, or control that contains a control.

  • PreviousControl refers to the control that had focus immediately before the ActiveControl.

  • RecordsetClone refers to a clone of the form's underlying recordset.

  • The Report property refers to the report that a subform is contained in or to the report itself.

  • The Section property refers to the section in a form or report where a particular control is located.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint