controlling a subform

M

martin

I have a main form with the same subform twice not linked.
I want to tell in code which record subform1 should show
and subform2. ie main form is master then i insert form
child twice in to master. In master on open event I'd like
to control which record child1 and child2 show. How is
this done?

Thanks
Martin
 
M

Marshall Barton

martin said:
I have a main form with the same subform twice not linked.
I want to tell in code which record subform1 should show
and subform2. ie main form is master then i insert form
child twice in to master. In master on open event I'd like
to control which record child1 and child2 show. How is
this done?


Set each subform control's Link Master/Child properties
appropriately. If the main form does not have a
field/control for each link master value, then create
(hiddden?) text boxes and use code to set the link master
values.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top