<?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>Data Connections</title><link>https://www.infopathdev.com:443/forums/44.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Looking up lists via multiple joins.</title><link>https://www.infopathdev.com:443/forums/thread/95946.aspx</link><pubDate>Mon, 17 Feb 2014 16:02:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:95946</guid><dc:creator>stunstall</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/95946.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=95946</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi,&lt;/p&gt;&lt;p&gt;I have&amp;nbsp;three&amp;nbsp;custom lists:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;div&gt;Activity&amp;nbsp;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div&gt;PN&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div&gt;Budget&amp;nbsp;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;In &lt;strong&gt;PN&lt;/strong&gt;, there are three fields: &lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;div&gt;The first field&amp;nbsp;is ID, the second field is &lt;strong&gt;PNRef &lt;/strong&gt;which is the Title field,&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;and the second is &lt;strong&gt;Activity &lt;/strong&gt;which is a lookup into the Activity list&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Activity &lt;/strong&gt;list only has two fields - ID and Title.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Budget &lt;/strong&gt;has 3 fields - ID, PN (a lookup into&amp;nbsp;the PN list)&amp;nbsp;and Activity which I have made a calculated field to hold the Activity value of the associated PN record.&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;What I would like is thus:&amp;nbsp;&lt;/p&gt;&lt;p&gt;On the &lt;strong&gt;Budget &amp;quot;add new item&amp;quot; &lt;/strong&gt;InfoPath form, whenever I select a new PN, I would like the &lt;strong&gt;Activity &lt;/strong&gt;calculated field to update with the &lt;u&gt;display name &lt;/u&gt;of the&amp;nbsp;&lt;strong&gt;Activity&amp;nbsp;&lt;/strong&gt;[lookup]&lt;strong&gt; &lt;/strong&gt;of the associated PN record.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;In SQL it would be:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;SELECT&amp;nbsp;Title from Activities&lt;/p&gt;&lt;p&gt;WHERE Activities.ID = PN.ActivityID&lt;/p&gt;&lt;p&gt;AND PN.ID = (Selected PN on form)&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;The function that I have created, using filters and data connections boils down to this:&lt;/p&gt;&lt;p&gt;Title[ID = Activity and ID = PN]&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;But it doesn&amp;#39;t work. Whenever I change the selected item in the Budget dropdown, I get the completely wrong activity Title displaying.&lt;/p&gt;&lt;p&gt;Can anyone help me here? &lt;/p&gt;&lt;p&gt;Regards,&lt;/p&gt;&lt;p&gt;Scott&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>