<?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>Accessing query results within code</title><link>https://www.infopathdev.com:443/forums/thread/40557.aspx</link><pubDate>Mon, 13 Apr 2009 20:06:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:40557</guid><dc:creator>kminor</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/40557.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=40557</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve got a button that runs some custom code and then submits my form.&amp;nbsp; Within that button&amp;#39;s &lt;strong&gt;rules&lt;/strong&gt;, I&amp;#39;m hitting an MS Access query that will give me the maximum Request ID&amp;nbsp;of&amp;nbsp;the table to which I&amp;#39;m about to submit.&amp;nbsp; I&amp;#39;ve looked high and low and can&amp;#39;t figure out how to take the result of that query (plus one) and pop it into a text field via VBScript in my button&amp;#39;s OnClick event.&amp;nbsp; Any help is greatly appreciated!&amp;nbsp; Thank you!&lt;/p&gt;</description></item></channel></rss>