<?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>Re: VBS Code to update Access Database</title><link>https://www.infopathdev.com:443/forums/thread/30447.aspx</link><pubDate>Tue, 15 Jul 2008 11:52:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:30447</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/30447.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=30447</wfw:commentRss><description>Cool -- I do that kind of stuff too -- code dyslexia.</description></item><item><title>Re: VBS Code to update Access Database</title><link>https://www.infopathdev.com:443/forums/thread/30446.aspx</link><pubDate>Tue, 15 Jul 2008 11:44:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:30446</guid><dc:creator>robotman757</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/30446.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=30446</wfw:commentRss><description>&lt;p&gt;I am such a goober! I had my error check code reversed and switched the True False flags. Once I fixed this, it works like a charm!! Yee Haw!!&lt;/p&gt;</description></item><item><title>Re: VBS Code to update Access Database</title><link>https://www.infopathdev.com:443/forums/thread/30445.aspx</link><pubDate>Tue, 15 Jul 2008 11:38:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:30445</guid><dc:creator>robotman757</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/30445.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=30445</wfw:commentRss><description>&lt;p&gt;Funny! I realized that I forgot to add the .text at the end just before I got your response! However, the database updated just fine with this test, but Infopath reported that it did not because the provider returned an error. I am not sure how to prevent this from happening as the update went just fine! I do not want the users to think there is a problem!&lt;/p&gt;</description></item><item><title>Re: VBS Code to update Access Database</title><link>https://www.infopathdev.com:443/forums/thread/30444.aspx</link><pubDate>Tue, 15 Jul 2008 11:33:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:30444</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/30444.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=30444</wfw:commentRss><description>Hello, and welcome!

Try this:

Set tp1 = XDocument.DOM.selectSingleNode(&amp;quot;my:DocumentNumber&amp;quot;)
XDocument.UI.Alert(tp1.text)

and see if you get your node&amp;#39;s text in your alert box.....</description></item><item><title>VBS Code to update Access Database</title><link>https://www.infopathdev.com:443/forums/thread/30443.aspx</link><pubDate>Tue, 15 Jul 2008 11:22:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:30443</guid><dc:creator>robotman757</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/30443.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=30443</wfw:commentRss><description>&lt;p&gt;First, this is my first post! So here are a few items that may make it apparent why I am trying to take this approach.&lt;/p&gt;
&lt;p&gt;I do not have sharepoint and will not be able to get it. I have to move my program off of a web server because we are not allowed to use one. They still want me to make it work and I really do not give up on something. I thought I could use vb script on the form and just use that to update a database on the file share.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Sub XDocument_OnSubmitRequest(eventObj) &lt;/p&gt;
&lt;p&gt;Dim db1, dba, rs1, qry, tp1 &lt;/p&gt;
&lt;p&gt;set db1 = CreateObject(&amp;quot;ADODB.Connection&amp;quot;) &lt;/p&gt;
&lt;p&gt;set rs1 = CreateObject(&amp;quot;ADODB.Recordset&amp;quot;) dba = &amp;quot;Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\\Snnsvr042\Apps\C1200APPS\databases\DashBoardData.mdb&amp;quot; &lt;/p&gt;
&lt;p&gt;db1.Open dba&lt;/p&gt;
&lt;p&gt;tp1 = XDocument.DOM.selectSingleNode(&amp;quot;my:DocumentNumber&amp;quot;).nodeValue&lt;/p&gt;
&lt;p&gt;XDocument.UI.Alert(tp1) &lt;/p&gt;
&lt;p&gt;qry = &amp;quot;insert into ContractsXML ([Document Number]) Values (&amp;#39;&amp;quot; &amp;amp; docnum &amp;amp; &amp;quot;&amp;#39;)&amp;quot; &lt;/p&gt;
&lt;p&gt;set rs1 = db1.Execute(qry) &lt;/p&gt;
&lt;p&gt;if err.number &amp;lt;&amp;gt; 0 then &lt;/p&gt;
&lt;p&gt;eventObj.ReturnStatus = True &lt;/p&gt;
&lt;p&gt;else &lt;/p&gt;
&lt;p&gt;eventObj.ReturnStatus = False &lt;/p&gt;
&lt;p&gt;end if &lt;/p&gt;
&lt;p&gt;End Sub&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;So, this so far seems like it should work similar to other systems I use this approach in. However, I receive an error on the line:&lt;/p&gt;
&lt;p&gt;tp1 = XDocument.DOM.selectSingleNode(&amp;quot;my:DocumentNumber&amp;quot;).nodeValue&lt;/p&gt;
&lt;p&gt;The error just says &amp;quot;Object Required&amp;quot; even though the node is correct. Any ideas or other thoughts would be appreciated.&lt;/p&gt;</description></item></channel></rss>