<?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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Reference Secondary Data Source (Sharepoint List) with AdoQueryConnection</title><link>https://www.infopathdev.com:443/forums/thread/57462.aspx</link><pubDate>Thu, 29 Jul 2010 20:18:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:57462</guid><dc:creator>Pinback</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/57462.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=57462</wfw:commentRss><description>&lt;p&gt;Thanks Hilary!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I am looking into the reference above as it looks like that is what I needed. :)&lt;/p&gt;
&lt;p&gt;Thanks again,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Pinback&lt;/p&gt;</description></item><item><title>Re: Reference Secondary Data Source (Sharepoint List) with AdoQueryConnection</title><link>https://www.infopathdev.com:443/forums/thread/56730.aspx</link><pubDate>Fri, 09 Jul 2010 20:41:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:56730</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/56730.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=56730</wfw:commentRss><description>&lt;p&gt;Hi:&lt;/p&gt;
&lt;p&gt;The error is actually telling you what type of connection you have. &lt;a href="http://msdn.microsoft.com/en-us/library/microsoft.office.infopath.sharepointlistqueryconnection(v=office.11).aspx"&gt;Here&lt;/a&gt; is more info on the SharepointListQueryConnection from MSDN.&lt;/p&gt;</description></item><item><title>Reference Secondary Data Source (Sharepoint List) with AdoQueryConnection</title><link>https://www.infopathdev.com:443/forums/thread/56725.aspx</link><pubDate>Fri, 09 Jul 2010 18:06:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:56725</guid><dc:creator>Pinback</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/56725.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=56725</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I am attempting to reference a Sharepoint List, which is a Secondary Data Source, with AdoQueryConnection. &lt;/p&gt;
&lt;p&gt;Dim myAdoQueryConnection As AdoQueryConnection&lt;br /&gt;myAdoQueryConnection = Me.DataConnections(&amp;quot;Room Requests&amp;quot;)&lt;/p&gt;
&lt;p&gt;I get the following error: Unable to cast object of type &amp;#39;Microsoft.Office.InfoPath.Internal.SharepointListQueryConnectionHost&amp;#39; to type &amp;#39;Microsoft.Office.InfoPath.AdoQueryConnection&amp;#39;.&lt;/p&gt;
&lt;p&gt;Any thoughts? Thanks in advance,&lt;/p&gt;
&lt;p&gt;Pinback&lt;/p&gt;</description></item></channel></rss>