dbTalk Databases Forums  

Link Child Link Master Not Working

comp.database.ms-access comp.database.ms-access


Discuss Link Child Link Master Not Working in the comp.database.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Mark C
 
Posts: n/a

Default Link Child Link Master Not Working - 10-26-2004 , 06:29 PM






I have a unbound form with a tab control with four tabs in an Access 97
database. On each tab I have a sub form each form on the sub forms is bound
to its own table. Each table has a field that can link them all together. I
have put an invisible unbound control on the master form that gets populated
on open. I set the link child and link master of each sub form to the
unbound control on the master form. When the form opens all the subforms
show are the first record in their underlying tables and not what the field
on the master should be linking.

On open of the master I have been successful in setting the record source of
each sub form to show what I want but I would like the link child and link
master to do it's job. Any help would be much appreciated.



Regards,
Mark



Reply With Quote
  #2  
Old   
Malcolm Cook
 
Posts: n/a

Default Re: Link Child Link Master Not Working - 10-27-2004 , 09:58 AM






Mark,

A close reading of your sentence -

Quote:
I set the link child and link master of each sub form to the
unbound control on the master form.
makes me wonder...

It sounds like you are setting the 'Link Child Fields' to the same value as
the 'Link Master Fields', both being set to the name of the invisible
unbound control. If so, this is your mistake. The 'Link Child Fields' must
be set to the name of a control or access field on the form displayed in
each subform.

Can this possibly be your problem????

BTW, it is possible to have a single subform control whose 'Source Object'
gets dynamically changed to the name of the form you want to display (based
on whatever criteria, be it a tabl controls setting, radio buttons, passing
of time, what have you). I think (not sure) that this saves in some
overhead as only the form that the user cares to see has its records loaded.

Regards,

--
Malcolm Cook - mec (AT) stowers-institute (DOT) org
Database Applications Manager - Bioinformatics
Stowers Institute for Medical Research - Kansas City, MO USA

"Mark C" <hereinde (AT) yahoo (DOT) com> wrote

Quote:
I have a unbound form with a tab control with four tabs in an Access 97
database. On each tab I have a sub form each form on the sub forms is
bound
to its own table. Each table has a field that can link them all together.
I
have put an invisible unbound control on the master form that gets
populated
on open. I set the link child and link master of each sub form to the
unbound control on the master form. When the form opens all the subforms
show are the first record in their underlying tables and not what the
field
on the master should be linking.

On open of the master I have been successful in setting the record source
of
each sub form to show what I want but I would like the link child and link
master to do it's job. Any help would be much appreciated.



Regards,
Mark





Reply With Quote
  #3  
Old   
Mark C
 
Posts: n/a

Default Re: Link Child Link Master Not Working - 10-27-2004 , 07:32 PM



Thank you Allen and Malcolm,

My problem was that the control on the main form was not named the same as
the controls on the sub forms. I was putting the Link Child and Link Master
fields with the same name. Once I changed accordingly all worked fine.
That's what I get for working 12 hours a day. Thank you both for the advice.

Regards,
Mark



"Mark C" <hereinde (AT) yahoo (DOT) com> wrote

Quote:
I have a unbound form with a tab control with four tabs in an Access 97
database. On each tab I have a sub form each form on the sub forms is bound
to its own table. Each table has a field that can link them all together. I
have put an invisible unbound control on the master form that gets
populated on open. I set the link child and link master of each sub form to
the unbound control on the master form. When the form opens all the
subforms show are the first record in their underlying tables and not what
the field on the master should be linking.

On open of the master I have been successful in setting the record source
of each sub form to show what I want but I would like the link child and
link master to do it's job. Any help would be much appreciated.



Regards,
Mark




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.