I have tbl A-> tbl B (1:n) related by a common filed itemID. itemID is unique in A yet could have many in B
one particular itemID can give rise to two distinct entries in B with same itemID
so normal viewing of tbl B could have 2*n rows of records
I have two forms made up FrmA and FrmB. FrmA has a control to take a subform which I match to FrmB. See diagram:
where Link Master fields and Link Child fields both referring to itemID.
Hence my subformB will filter to show only entries that have a particular itemID
On FrmB there are lots of events I can exploit to maniuplate my records but on a form level
On FrmA if I refer to subform which is linked to FrmB I only am offered two events to code (On Enter and On Exit)
I would like to insert my own controls on FrmB and manipulate the recordsets to show/update my data. If I invoke CurrentDB, I will assume that it will contain the full recordset without any filter on its source (from TBL B : 2* n rows)
Yet I know if FrmB is operating as a subform in FrmA it is only handed over 2 records according to which itemID I am looking at. So does it mean that the routines that I have coded under FrmB rely on a currentDB recordset that can vary, depending whether it is in the context of a subform or as a form?
Or do I have to do something explicit using On Enter under the subform control to pass this knowledge to FrmB?