A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Main form with two subforms on it and linked to it



 
 
Thread Tools Display Modes
  #1  
Old December 11th, 2005, 11:42 PM posted to microsoft.public.access.forms
external usenet poster
 
Posts: n/a
Default Main form with two subforms on it and linked to it

Hi, is it possible to have a main form with two subforms linked to that main
form. Each subform has a parent/child relationship with the main form. Each
subform comes from a separate table which is linked to the main forms table
with a one/many relationship. The subform tables are on the many side.

I have a Venue table with a one/many relationship to the Contacts and
Violations tables. They are linked by VenueID. I would like a main form with
each subform on its own tabcontrol on the main form.

Can I do this?

Thanks
Tom

--
Message posted via http://www.accessmonster.com
  #2  
Old December 12th, 2005, 12:24 AM posted to microsoft.public.access.forms
external usenet poster
 
Posts: n/a
Default Main form with two subforms on it and linked to it

yes. build the main form, including the tab control. build a form for the
Contacts table, and another form for the Violations table. open the main
form in design view, and select the first tab page. in the Toolbox toolbar,
click the Subform/Subreport button, then click anywhere within the tab page
to place the control on the page. in the Properties box, click on the
SourceObject line and click the down arrow at the right. select the name of
the Contacts form from the droplist. set the LinkMasterFields property to
the name of the Venues primary key field. set the LinkChildFields property
to the name of the matching foreign key field in the Contacts table. (if you
linked the tables properly in the Relationships window, Access may set these
two properties automatically.)

repeat the above, to create the Violations subform.

hth


"Tom K via AccessMonster.com" u9562@uwe wrote in message
news:58b26d1000f74@uwe...
Hi, is it possible to have a main form with two subforms linked to that

main
form. Each subform has a parent/child relationship with the main form.

Each
subform comes from a separate table which is linked to the main forms

table
with a one/many relationship. The subform tables are on the many side.

I have a Venue table with a one/many relationship to the Contacts and
Violations tables. They are linked by VenueID. I would like a main form

with
each subform on its own tabcontrol on the main form.

Can I do this?

Thanks
Tom

--
Message posted via http://www.accessmonster.com



  #3  
Old December 12th, 2005, 03:32 AM posted to microsoft.public.access.forms
external usenet poster
 
Posts: n/a
Default Main form with two subforms on it and linked to it

Thank you very much!

Tom

tina wrote:
yes. build the main form, including the tab control. build a form for the
Contacts table, and another form for the Violations table. open the main
form in design view, and select the first tab page. in the Toolbox toolbar,
click the Subform/Subreport button, then click anywhere within the tab page
to place the control on the page. in the Properties box, click on the
SourceObject line and click the down arrow at the right. select the name of
the Contacts form from the droplist. set the LinkMasterFields property to
the name of the Venues primary key field. set the LinkChildFields property
to the name of the matching foreign key field in the Contacts table. (if you
linked the tables properly in the Relationships window, Access may set these
two properties automatically.)

repeat the above, to create the Violations subform.

hth

Hi, is it possible to have a main form with two subforms linked to that main
form. Each subform has a parent/child relationship with the main form. Each

[quoted text clipped - 9 lines]
Thanks
Tom


--
Message posted via http://www.accessmonster.com
  #4  
Old December 12th, 2005, 06:33 AM posted to microsoft.public.access.forms
external usenet poster
 
Posts: n/a
Default Main form with two subforms on it and linked to it

you're welcome


"Tom K via AccessMonster.com" u9562@uwe wrote in message
news:58b46e174ad40@uwe...
Thank you very much!

Tom

tina wrote:
yes. build the main form, including the tab control. build a form for the
Contacts table, and another form for the Violations table. open the main
form in design view, and select the first tab page. in the Toolbox

toolbar,
click the Subform/Subreport button, then click anywhere within the tab

page
to place the control on the page. in the Properties box, click on the
SourceObject line and click the down arrow at the right. select the name

of
the Contacts form from the droplist. set the LinkMasterFields property to
the name of the Venues primary key field. set the LinkChildFields

property
to the name of the matching foreign key field in the Contacts table. (if

you
linked the tables properly in the Relationships window, Access may set

these
two properties automatically.)

repeat the above, to create the Violations subform.

hth

Hi, is it possible to have a main form with two subforms linked to that

main
form. Each subform has a parent/child relationship with the main form.

Each
[quoted text clipped - 9 lines]
Thanks
Tom


--
Message posted via http://www.accessmonster.com



 




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 Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Populate field on linked form from main form Michelle Using Forms 2 March 29th, 2007 02:32 AM
Open Form Linked to Main Form? Dave Elliott Using Forms 14 May 31st, 2005 08:19 PM
duplicating record on main form and subforms ash Using Forms 3 May 21st, 2005 03:56 AM
Entering Data in Subforms w/ Main form locked rgrantz Using Forms 0 November 11th, 2004 08:01 PM
dlookup miaplacidus Using Forms 9 August 5th, 2004 09:16 PM


All times are GMT +1. The time now is 07:06 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.