Skip to content

Latest commit

 

History

History
37 lines (23 loc) · 1.01 KB

Access.SubForm.Parent.md

File metadata and controls

37 lines (23 loc) · 1.01 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
SubForm.Parent property (Access)
vbaac10.chm11915
vbaac10.chm11915
Access.SubForm.Parent
6d40d3c3-aea4-782f-157a-a063d60a76f4
02/23/2019
medium

SubForm.Parent property (Access)

Returns the parent object for the specified object. Read-only.

Syntax

expression.Parent

expression A variable that represents a SubForm object.

Remarks

Use the Parent property to determine which form or report is currently the parent when you have a subform or subreport that has been inserted in multiple forms or reports.

For example, you might insert an OrderDetails subform into both a form and a report. The following example uses the Parent property to refer to the OrderID field, which is present on the main form and report. You can enter this expression in a bound control on the subform.

=Parent!OrderID

[!includeSupport and feedback]