Thanks for the reply. I'm struggling with the linking table/sub form.
I am under the impression that the linking table would have only the fields
needed to pair up the records e.g. Policy # | InsuredID #
Other fields could be added to this table where the data is unique to the
pairing. That is not the case here so the linking table should be just the
two fields.
I guess what I'm missing as showing the rest of the record for each insured
in the subform if the subform is based on the linking table which has only
two fields.
I'm sorry if I'm being dense but I'm still missing a piece to this puzzle.
See inline comments
>Thanks for the reply. I'm struggling with the linking table/sub form.
>
[quoted text clipped - 4 lines]
>pairing. That is not the case here so the linking table should be just the
>two fields.
Correct - additional fields in the linking table must pertain only to
the unique pairing of Policy# & Insured#. One such possible field that
comes to mind is InsuredDate -- by placing this field in the linking
table, it will allow each Insured person to have a unique date for
their coverage (may or may not be applicable for your situation)
>I guess what I'm missing as showing the rest of the record for each insured
>in the subform if the subform is based on the linking table which has only
>two fields.
Base the linking table on a query that joins the linking table with
the third table.
Alternatively, and if there is a lot of information from the third
table that you want to display, you can create a second subform for
the third table's information. It would sit on your main form in
parallel with the original subform. It's a bit trickier to keep such a
form "in sync" with the active data, but is feasible
- place an unbound textbox on the main form
- use the OnCurrent event of the subform to populate the textbox with
the current value of the appropriate field
e.g. Me.Parent![Text3] = Me![Insured#]
- use the textbox as the MasterLinkingField into the secondary subform
- hide the textbox
>I'm sorry if I'm being dense but I'm still missing a piece to this puzzle.
Not at all. Some of this stuff is not immediately obvious.
>> The typical interface is to have a "base" form that deals with the
>> policies. Within that form you create subform for managing the
[quoted text clipped - 104 lines]
>> remove uppercase letters for true email
>> http://www.geocities.com/jacksonmacd/ for info on MS Access security
**********************
jackmacMACdonald@telusTELUS.net
remove uppercase letters for true email
http://www.geocities.com/jacksonmacd/ for info on MS Access security
Dkline - 07 Jan 2005 21:08 GMT
I now have the main form and the two subforms. I got ambitious and set an
onclick even so that when the user selects an Insured to be with the
selected Policy, it puts the InsuredID into the linking table along with the
PolicyNumber. Putting the values into the junction table works fine.
What I'm stuck on is updating the forms on the screen. I make my selection
in the InsuredsID field. Until I click on the other column [PolicyNumber] in
the subform in which I select the linking InsuredID, the InsuredID field
screen does not get updated.
The other subform has a query to show what insured(s) are selected for the
current policy. That doesn't update until I move the Main Form's record
selector.
I've tried DoCmd.Requery and everything else I can think of. How can I get
these to refresh or repaint or requery?
> See inline comments
>
[quoted text clipped - 160 lines]
> remove uppercase letters for true email
> http://www.geocities.com/jacksonmacd/ for info on MS Access security