Export (0) Print
Expand All
Expand Minimize
0 out of 1 rated this helpful - Rate this topic

SubForm.Parent Property (Access)

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

expression .Parent

expression A variable that represents a SubForm object.

You can 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.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.