SubForm object (Access)
This object corresponds to a subform control. The subform control embeds a form in a form.
Remarks
Control | Tool |
---|---|
Note
For example, you can use a form with a subform to present one-to-many relationships, such as one product category with the items that fall into that category. In this case, the main form can display the category ID, name, and description; the subform can display the available products in that category.
Instead of creating the main form, and then adding the subform control to it, you can simultaneously create the main form and subform with a wizard. You can also create a subform by dragging an existing form or report from the Database window to the main form.
Events
Methods
Properties
- AddColon
- Application
- AutoLabel
- BorderColor
- BorderShade
- BorderStyle
- BorderThemeColorIndex
- BorderTint
- BorderWidth
- BottomPadding
- CanGrow
- CanShrink
- Controls
- ControlType
- DisplayWhen
- Enabled
- EventProcPrefix
- FilterOnEmptyMaster
- Form
- GridlineColor
- GridlineShade
- GridlineStyleBottom
- GridlineStyleLeft
- GridlineStyleRight
- GridlineStyleTop
- GridlineThemeColorIndex
- GridlineTint
- GridlineWidthBottom
- GridlineWidthLeft
- GridlineWidthRight
- GridlineWidthTop
- Height
- HorizontalAnchor
- InSelection
- IsVisible
- LabelAlign
- LabelX
- LabelY
- Layout
- LayoutID
- Left
- LeftPadding
- LinkChildFields
- LinkMasterFields
- Locked
- Name
- OldBorderStyle
- OnEnter
- OnExit
- Parent
- Properties
- Report
- RightPadding
- Section
- SourceObject
- SpecialEffect
- StatusBarText
- TabIndex
- TabStop
- Tag
- Top
- TopPadding
- VerticalAnchor
- Visible
- Width
See also
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.