J
JohnB
Hi. I wonder if anyone can help with this. Im afraid it
will take a bit of explaining.
I have tblPlacements with, among others, a LandladyID
number field. The idea is that a combo on a form is used
to select the Landlady, from tblLandladies, allocated to
each placement and put their Key Index LandladyID in that
field. This worked fine but then the users decided that
they wanted occasionably to be able to allocate a second
Landlady to each placement, so I created a
SecondLandladyID field in tblPlacements and created a
second combo to allow them to do this, again drawing on
tblLandladies. This also works fine but now I want to be
able to show, in a Landladies form, a subform showing the
placement history, i.e. all the related placement records
for each Landlady. The trouble is, at the moment the only
way I can do this is to create two history subforms, one
showing the placement records where the LandladyID was
entered and the other where SecondLandladyID was entered.
I cant manage to create a query which produces a
recordset, to feed to just one subform, which simply lists
all placement records where a Landlady was allocated. What
I want this query to do is to find all the placement
records and show the Landlady identifier as LandladyID,
irrespective of whether the placement record shows it as
LandladyID or SecondLandladyID or both, so that I can then
link subform to main form by LandladyID. Is there a way of
doing this? I hope Ive been clear enough. Thanks JohnB
will take a bit of explaining.
I have tblPlacements with, among others, a LandladyID
number field. The idea is that a combo on a form is used
to select the Landlady, from tblLandladies, allocated to
each placement and put their Key Index LandladyID in that
field. This worked fine but then the users decided that
they wanted occasionably to be able to allocate a second
Landlady to each placement, so I created a
SecondLandladyID field in tblPlacements and created a
second combo to allow them to do this, again drawing on
tblLandladies. This also works fine but now I want to be
able to show, in a Landladies form, a subform showing the
placement history, i.e. all the related placement records
for each Landlady. The trouble is, at the moment the only
way I can do this is to create two history subforms, one
showing the placement records where the LandladyID was
entered and the other where SecondLandladyID was entered.
I cant manage to create a query which produces a
recordset, to feed to just one subform, which simply lists
all placement records where a Landlady was allocated. What
I want this query to do is to find all the placement
records and show the Landlady identifier as LandladyID,
irrespective of whether the placement record shows it as
LandladyID or SecondLandladyID or both, so that I can then
link subform to main form by LandladyID. Is there a way of
doing this? I hope Ive been clear enough. Thanks JohnB