Help!

re-using a subform

 
  

Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> General Discussions RSS
Next:  info about quagga mussels  
Author Message
Grip
External


Since: Nov 04, 2009
Posts: 2



PostPosted: Wed Nov 04, 2009 10:28 am    Post subject: re-using a subform
Archived from groups: microsoft>public>access (more info?)

Is it possible to re-use a subform on the same parent form?

I've got tblMemberships which always have values in two fields, OrgID
and PeopleID. I've got tblEmail which has two fields, OrgID and
PeopleID, but only one is ever populated.

I want to have a subform, fsubEmail and use it on the parent form
frmMemberships. I want to use it twice, once linking the OrgIDs and
once linking the PeopleIDs, but I can't get consistent results.

When I try to Link the fields in the property box of the second
instance of the sub form, I get an error, "The expression you entered
refers to an object that is closed or doesn't exist."

Thanks,
G
Back to top
Grip
External


Since: Nov 04, 2009
Posts: 2



PostPosted: Wed Nov 04, 2009 11:44 am    Post subject: Re: re-using a subform [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Nov 4, 11:38 am, "Dirk Goldgar"
<d... RemoveThis @NOdataSPAMgnostics.com.invalid> wrote:
> "Grip" <g... RemoveThis @cybermesa.com> wrote in message
>
> news:fcfa0175-c152-43b5-ba62-980416fc3c83@12g2000pri.googlegroups.com...
>
> > Is it possible to re-use a subform on the same parent form?
>
> > I've got tblMemberships which always have values in two fields, OrgID
> > and PeopleID.  I've got tblEmail which has two fields, OrgID and
> > PeopleID, but only one is ever populated.
>
> > I want to have a subform, fsubEmail and use it on the parent form
> > frmMemberships.  I want to use it twice, once linking the OrgIDs and
> > once linking the PeopleIDs, but I can't get consistent results.
>
> > When I try to Link the fields in the property box of the second
> > instance of the sub form, I get an error, "The expression you entered
> > refers to an object that is closed or doesn't exist."
>
> It seems to me that this should work, if you set it up right.  You can
> certainly use the same subform multiple times on a parent form, with
> different linking fields.  Are you saying that you had one of the subform
> controls set up with Link Master & Child fields set up as OrgID linked to
> OrgID, and another one set to link PeopleID to PeopleID?
>
> Does the form object that you're using as your subforms's Source Object
> include both OrgID and PeopleID in its RecordSource?
>
> --
> Dirk Goldgar, MS Access MVP
> Access tips:www.datagnostics.com/tips.html
>

I've double checked all the Sources and they seem fine.

The issue, I've discovered, is with the Subform Field Linker. If I
hand-type the Link Master and Link Child values, I can get the link to
stick. If I use the Linker ("...") button, I get the above error.

Thanks for your help.

G
Back to top
Dirk Goldgar
External


Since: Oct 05, 2006
Posts: 65



PostPosted: Wed Nov 04, 2009 1:38 pm    Post subject: Re: re-using a subform [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Grip" <grip.RemoveThis@cybermesa.com> wrote in message
news:fcfa0175-c152-43b5-ba62-980416fc3c83@12g2000pri.googlegroups.com...
> Is it possible to re-use a subform on the same parent form?
>
> I've got tblMemberships which always have values in two fields, OrgID
> and PeopleID. I've got tblEmail which has two fields, OrgID and
> PeopleID, but only one is ever populated.
>
> I want to have a subform, fsubEmail and use it on the parent form
> frmMemberships. I want to use it twice, once linking the OrgIDs and
> once linking the PeopleIDs, but I can't get consistent results.
>
> When I try to Link the fields in the property box of the second
> instance of the sub form, I get an error, "The expression you entered
> refers to an object that is closed or doesn't exist."


It seems to me that this should work, if you set it up right. You can
certainly use the same subform multiple times on a parent form, with
different linking fields. Are you saying that you had one of the subform
controls set up with Link Master & Child fields set up as OrgID linked to
OrgID, and another one set to link PeopleID to PeopleID?

Does the form object that you're using as your subforms's Source Object
include both OrgID and PeopleID in its RecordSource?

--
Dirk Goldgar, MS Access MVP
Access tips: www.datagnostics.com/tips.html

(please reply to the newsgroup)
Back to top
Dirk Goldgar
External


Since: Oct 05, 2006
Posts: 65



PostPosted: Wed Nov 04, 2009 2:50 pm    Post subject: Re: re-using a subform [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Grip" <grip.TakeThisOut@cybermesa.com> wrote in message
news:5aea66d4-1ab3-4952-9515-1d36554ce887@f1g2000prf.googlegroups.com...
>
> The issue, I've discovered, is with the Subform Field Linker. If I
> hand-type the Link Master and Link Child values, I can get the link to
> stick. If I use the Linker ("...") button, I get the above error.

That sounds like a bug, or at least an odd limitation in the linker wizard.
I don't believe I've ever used that wizard, though, so if you can key the
values in manually and get them to stick, that's what I'd do.

--
Dirk Goldgar, MS Access MVP
Access tips: www.datagnostics.com/tips.html

(please reply to the newsgroup)
Back to top
S.Clark
External


Since: Jan 26, 2009
Posts: 10



PostPosted: Thu Nov 05, 2009 10:15 am    Post subject: RE: re-using a subform [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I was able to implement this successfully... in 2007. (Never tried to do
this, so 'way cool' concept.)
What is the data value that you're entering that causes the error?

"Grip" wrote:

> Is it possible to re-use a subform on the same parent form?
>
> I've got tblMemberships which always have values in two fields, OrgID
> and PeopleID. I've got tblEmail which has two fields, OrgID and
> PeopleID, but only one is ever populated.
>
> I want to have a subform, fsubEmail and use it on the parent form
> frmMemberships. I want to use it twice, once linking the OrgIDs and
> once linking the PeopleIDs, but I can't get consistent results.
>
> When I try to Link the fields in the property box of the second
> instance of the sub form, I get an error, "The expression you entered
> refers to an object that is closed or doesn't exist."
>
> Thanks,
> G
> .
>
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> General Discussions All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum