G.7. The Form Object

The Forms collection contains all of the open forms associated with the current database. Forms in the database that are not currently open are not in this collection.

G.7.1. Form Object Properties

The Form object has a variety of properties, which are described in the following table.

PropertyData TypeDescription
ActiveControlControl objectUsed with the Screen object to determine the control that has the focus.
AfterDelConfirmStringIndicates which macro, event procedure, or user-defined function runs when the AfterDelConfirm event occurs.
AfterFinalRenderStringIndicates which macro, event procedure, or user-defined function runs when the AfterFinalRender event occurs.
AfterInsertStringIndicates which macro, event procedure, or user-defined function runs when the AfterInsert event occurs.
AfterLayoutStringIndicates which macro, event procedure, or user-defined function runs when the AfterLayout event occurs.
AfterRenderStringIndicates which macro, event procedure, or user-defined function runs when the AfterRender event occurs.
AfterUpdateStringIndicates which macro, event procedure, or user-defined function runs when the event AfterUpdate event occurs.
AllowAdditionsBooleanDetermines whether a user can add a record when using a form.
AllowDataSheetViewBooleanDetermines whether the form can be switched to datasheet view.
AllowDeletionsBooleanDetermines whether a user can delete a record when using a form.
AllowEditsBooleanDetermines whether a user can edit save records ...

Get Access™ 2007 VBA Programmer's Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.