<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: VBscript Question</title><link>https://www.infopathdev.com:443/forums/thread/60570.aspx</link><pubDate>Thu, 21 Oct 2010 14:23:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:60570</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/60570.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=60570</wfw:commentRss><description>&lt;p&gt;I think you&amp;#39;re missing a &lt;strong&gt;set&lt;/strong&gt; before that next line.&amp;nbsp; May I suggest reading up on some general&amp;nbsp;VBScript tutorials before proceeding any further?&lt;/p&gt;</description></item><item><title>Re: VBscript Question</title><link>https://www.infopathdev.com:443/forums/thread/60565.aspx</link><pubDate>Thu, 21 Oct 2010 12:30:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:60565</guid><dc:creator>Jbyates</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/60565.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=60565</wfw:commentRss><description>&lt;p&gt;&lt;em&gt;&lt;font face="Times New Roman" size="3"&gt;I tried to take out the second part but then it hangs on the next line&lt;/font&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;connection = DataConnections(&amp;quot;Previous Year&amp;quot;)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Does anyone have an example of using VBscript to make a connection to a secondary source?&amp;nbsp; Every &amp;quot;VBScript&amp;quot; example I&amp;#39;ve seen uses the &amp;quot;As AdoQueryConnection&amp;quot;.&lt;/p&gt;</description></item><item><title>Re: VBscript Question</title><link>https://www.infopathdev.com:443/forums/thread/60542.aspx</link><pubDate>Wed, 20 Oct 2010 22:26:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:60542</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/60542.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=60542</wfw:commentRss><description>&lt;p&gt;Sounds like the code you&amp;#39;re trying to reuse is VB code, not VBScript.&amp;nbsp; I believe in VBScript, it would just be &lt;strong&gt;Dim Conn&lt;/strong&gt;, without the &lt;strong&gt;As AdoQueryConnection&lt;/strong&gt;.&lt;/p&gt;</description></item><item><title>VBscript Question</title><link>https://www.infopathdev.com:443/forums/thread/60536.aspx</link><pubDate>Wed, 20 Oct 2010 18:43:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:60536</guid><dc:creator>Jbyates</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/60536.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=60536</wfw:commentRss><description>&lt;p&gt;I just started using the script portion of Infopath 2003 and found some used code with &amp;quot;&lt;font color="#0000ff"&gt;Dim&lt;/font&gt;&lt;font size="2"&gt; Conn &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; AdoQueryConnection&amp;quot; in it.&amp;nbsp; I&amp;#39;m trying to establish a connection to an Acess DB to query a secondary datasource but every time&amp;nbsp;I try to preview the form it hangs on AdoQueryConnection like its not sure what it is.&amp;nbsp; Is there something I need to add to my code to get this working?&lt;/font&gt;&lt;/p&gt;</description></item></channel></rss>