
Signature
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
pleaseNOOSpamKallal@msn.com
Hi Albert,
I just posted some code I found that makes it work.
To answer one of your questions, FamilyRecID comes from the same place
as DocketRecID. I have no trouble cpaturing and using the values.
The code I posted (probably below your message) loads ALL of the family
records with the desired one displayed. Your raise an interesting
possibility (and a desiable one) that ONLY the speific record can be
made available in the subform. How can I modify my code to do that?
This could keep users from moving about when editing the records.
Thanks!
> > myrec = "[DocketRecID]= " & DocketRecID
> > DoCmd.OpenForm "frmMainInput", acNormal, , myrec
>
> Perfectly clear...
>
> But, when, or where, or how do you ask, or get the FamilyRecID??
.
.
.
> It is not clear if you want to the sub-form to display all of the
> entries..but just have the cursor on the family id, or
[quoted text clipped - 4 lines]
> Edmonton, Alberta Canada
> pleaseNOOSpamKallal@msn.com
Albert D. Kallal - 05 Aug 2006 03:40 GMT
> The code I posted (probably below your message) loads ALL of the family
> records with the desired one displayed. Your raise an interesting
> possibility (and a desiable one) that ONLY the speific record can be
> made available in the subform.
Well, in fact, perhaps you don't even need to show the docket form..but jump
right to the
FamilyRecID in tblFamilyMembers ???
This would suggest that you don't use a docket form + sub-form..but jump
right to the tblFamilymemebers form...
>How can I modify my code to do that?
> This could keep users from moving about when editing the records.
Well, simply modify the link master/child field setting for the sub-form
(you do have that now..right??).
For link fields in the sub-form control, you likely have
master field: DocketRecID
child field : DocketRecID
change above to
master field: DocketRecID;FamilyRecID
child field : DocketRecID;FamilyRecID
You could also consider a design where you display all of the family for the
docket...but "move/place" the cursor on the
correct record in the sub-form.
regardless of the above two choices, you could also place a button on the
sub-form to open up the family member edit form.
If you look at the screen shots here...you can see that I OFTEN put a button
on the continuous form to open up the details...
http://www.members.shaw.ca/AlbertKallal/Articles/Grid.htm
(scroll down a bit.....to see some more ideas in the above).
The code behind those buttons is just like always...such as
docmd.openform "formdetails",,,"id = " & me!id
(you would change "id" in above to whatever the pk used).

Signature
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
pleaseNOOSpamKallal@msn.com
bgreenspan@gmail.com - 05 Aug 2006 06:49 GMT
Thanks for the link to your website and for the ideas. It will take me
some time to go through the myriad of possibilities. I appreciate your
help.
- Bernie