<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Controls</title><link>https://www.infopathdev.com:443/forums/43.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>is there an alternative to a many to many relationship</title><link>https://www.infopathdev.com:443/forums/thread/79812.aspx</link><pubDate>Mon, 25 Jun 2012 10:09:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:79812</guid><dc:creator>Geoff Willis</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/79812.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=79812</wfw:commentRss><description>&lt;p&gt;Hi, I am designing an Infopath 2010 form based on an access 2010 database.&lt;/p&gt;&lt;p&gt;I have to populate a cascading drop down based on two tables [Customers] &amp;amp; [Sites]&amp;nbsp;1st drop down &amp;quot;Customers&amp;quot; filtered 2nd drop down &amp;quot;Sites&amp;quot;&lt;/p&gt;&lt;p&gt;Problem: Cusomers can have many Sites &amp;amp; Sites can have many Customers - classic many to many relationship - so drop downs will only show one customer per site.&lt;/p&gt;&lt;p&gt;ie Site_A has two customers Cust_1 &amp;amp; Cust_2 For the above to work Site_A will need to be entrered into the [Site] table twice (duplicated) - one for each Customer.&lt;/p&gt;&lt;p&gt;I have therfore created a third table [Multi_Site] with fields&amp;nbsp;Multi_Site ID, Site ID(FK) &amp;amp; Customer ID&lt;/p&gt;&lt;p&gt;So when a new record for site is created a drop down based on [Multi_Site] table shows a list of all customers and of course several can be selected aginst the SITE entry in the [Multi_Site] table.&lt;/p&gt;&lt;p&gt;If&amp;nbsp;I use the [Multi_Site] table for &amp;quot;Customers&amp;quot; drop down&amp;nbsp;I get the list with multiple instances of the same customer against each individual site and so use &lt;em&gt;show unique entries only &lt;/em&gt;on the drop down list (this is slow as there are more than 5,000 sites against 600 customers so its pulling all the sites and&amp;nbsp;each customer &lt;em&gt;duplicated&amp;nbsp;&lt;/em&gt;and&amp;nbsp;matched to that site).&lt;/p&gt;&lt;p&gt;1. I understand that Access 2010 has a &amp;quot;multivalue&amp;quot; field function - can this be used in infopath 2010 and if so what seperators can be used (mutliple site ID&amp;#39;s against each customer in one field would be perfect).&lt;/p&gt;&lt;p&gt;2. If i can&amp;#39;t use the above, how can i use the [Multi_Site] in the &amp;quot;Customer&amp;quot; drop down and have that populate 5 fields (Customer Name, Address 1, Address 2 etc) from the [Customers] secondary data source either with code or rules into the main table during query or when adding a new record when i will have to use the [Customers] secondary data source?&lt;/p&gt;&lt;p&gt;3. Is there a way to mimic a many to many relationship using several one to many tables or by using rules/code in the infopath form?&lt;/p&gt;&lt;p&gt;&amp;nbsp;Your help will greatly appreciated&lt;/p&gt;</description></item></channel></rss>