UtterAccess.com
X   Site Message
(Message will auto close in 2 seconds)

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Forms and 2 subforms on Intersection table    
 
   
Paul_Sussex
post Nov 7 2008, 11:04 AM
Post #1

UtterAccess Addict
Posts: 192
From: Sussex, England



I can't seem to get my head round this problem.

The attached diagram should explain what i wish to achieve.

I have managed to get main form and subform 1 working and in sync ie every time main form record changes it shows the corresponding subform1 records.

My problem is subform two's data is derived from an intersection table (many to many) and obviously when i come to insert the subform 2, there are no linking fields (Master/Child) for the sub to link with.

Any ideas please?

Thanks

Paul
Attached File(s)
Attached File  FormDesign1.jpg ( 53.72K ) Number of downloads: 5
 
Go to the top of the page
 
+
Doug Steele
post Nov 7 2008, 11:23 AM
Post #2

UtterAccess VIP
Posts: 17,645
From: Don Mills, ON (Canada)



Try basing subform2 on a query that joins tblSUpplierToProducts to table Supplier.
Go to the top of the page
 
+
Paul_Sussex
post Nov 7 2008, 01:24 PM
Post #3

UtterAccess Addict
Posts: 192
From: Sussex, England



Hi thanks for the tip. I got round it by using for SubFrm2 a form within a form and then used that as subfrm2.

I tried doing this with a query as you suggested but it didnt seem to work, that's because of me i'm sure but thank you anyway.

Paul
Go to the top of the page
 
+
mike60smart
post Nov 7 2008, 01:57 PM
Post #4

UtterAccess VIP
Posts: 8,480
From: Dunbar,Scotland



Hi Paul

You should really do it the way Douig suggested

The subform should be based on a query that uses your tblSUpplierToProducts

You should select all fields from this table

You can then create a subform using the Wizard and link Master/Child on SupplierID


My 2 cents worth

Mike
Go to the top of the page
 
+

Thank you for your support! Reply to this topicStart new topic

Jump To Forum:
 



RSS Go to Top  ·  Lo-Fi Version Time is now: 26th May 2013 - 04:42 AM