I have a subform reference returning Null where the textbox has a value in it. The code I am using is:
End Date: [Forms]![ReportCentre]![NavigationSubform].[Form]![txtEndDate]
This is in a tabbed control, but I could not find the .Pages property referred to in a similar question.
The subform being referenced is [LODForm], and the tab control (page area) is [NavigationSubform]
Why is this returning Null?
The subform belongs to the form, not the tab control. The tab control only hides/displays other controls. And you will reference the subform control, not the subform. Thus:
End Date: [Forms]![ReportCentre]![NameOfYourSubformControl].[Form]![txtEndDate]
Inserted name of subform control:
End Date: [Forms]![ReportCentre]![NavigationSubform].[Form]![txtEndDate]
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.