<?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: Obj Reference not set to an instance</title><link>https://www.infopathdev.com:443/forums/thread/14723.aspx</link><pubDate>Tue, 18 Jul 2006 17:13:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14723</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14723.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14723</wfw:commentRss><description>Glad you could figure it out so quickly, Gary!</description></item><item><title>Re: Obj Reference not set to an instance</title><link>https://www.infopathdev.com:443/forums/thread/14722.aspx</link><pubDate>Mon, 17 Jul 2006 01:31:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14722</guid><dc:creator>garym</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14722.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14722</wfw:commentRss><description>I resolved this problem by using the following statement...&lt;br /&gt;&lt;br /&gt;e.Source.nodeValue.ToString()&lt;br /&gt;&lt;br /&gt;instead of...&lt;br /&gt;&lt;br /&gt;thisXDocument.DOM.selectSingleNode("//my:Date").text&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;Thanks,</description></item><item><title>Obj Reference not set to an instance</title><link>https://www.infopathdev.com:443/forums/thread/12920.aspx</link><pubDate>Sun, 16 Jul 2006 22:13:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12920</guid><dc:creator>garym</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12920.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=12920</wfw:commentRss><description>I have seen the following error in a number of messages, but they don't seem to pertain to my situation.&lt;br /&gt;&lt;br /&gt;Object reference not set to an instance of an object.&lt;br /&gt;&lt;br /&gt;Here is part of my code...&lt;br /&gt;&lt;br /&gt;       ' The following function handler is created by Microsoft Office InfoPath. Do not&lt;br /&gt;        ' modify the type or number of arguments.&lt;br /&gt;        &amp;lt;InfoPathEventHandler(MatchPath:="/dfs:myFields/dfs:dataFields/d:tblTimeSheet/@Date", EventType:=InfoPathEventType.OnAfterChange)&amp;gt; _&lt;br /&gt;        Public Sub tblTimeSheet_Date_attr_OnAfterChange(ByVal e As DataDOMEvent)&lt;br /&gt;            ' Write code here to restore the global state.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;            If (e.IsUndoRedo) Then&lt;br /&gt;                ' An undo or redo operation has occurred and the DOM is read-only.&lt;br /&gt;                Return&lt;br /&gt;            End If&lt;br /&gt;&lt;br /&gt;            Dim ppCount As Integer&lt;br /&gt;&lt;br /&gt;            Dim ppCurrentDate As DateTime&lt;br /&gt;            Dim ppCurrentPeriod As DateTime&lt;br /&gt;&lt;br /&gt;            Dim ppResult As Boolean&lt;br /&gt;&lt;br /&gt;            Dim ppDate As DateTime = thisXDocument.DOM.selectSingleNode("//my:Date").text&lt;br /&gt;&lt;br /&gt;When I try to reference the text field I receive the error. &lt;br /&gt;&lt;br /&gt;Also, what book do you recommend on coding Infopath with VB.Net?&lt;br /&gt;&lt;br /&gt;Thanks for the help.&lt;br /&gt;&lt;br /&gt;</description></item></channel></rss>