People have posted a link here to a page with lots of examples of object references but I don't have it. You have to understand the hierarchy of objects to make these things work. Note the distinction between subform control name vs subform name. Access will name them the same if you use the form wizard (why, oh why?). I always rename the sf control. Note that this is not correct for navigation forms (and it may go deeper than what you need). I've also assumed your code is on the main form and that you are trying to refer to the subform, not the other way around.
referencing CONTROLS on subform:
[Forms]![Main form name]![subform control name].[Form]![control name on subform]
e.g.
[Forms]![frmNP]![subNPfrm].[Form]![txtNPno]
frmNP is main form name
subNPfrm is name of subform control on frmNP
txtNPno is the textbox control name
Last edited by Micron; 03-22-2022 at 08:22 AM.
Reason: clarification
The more we hear silence, the more we begin to think about our value in this universe.
Paraphrase of Professor Brian Cox.