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. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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 | |
|
|
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 |