<?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>Controls</title><link>https://www.infopathdev.com:443/forums/43.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Problem with Validation on Infopath 2003 form</title><link>https://www.infopathdev.com:443/forums/thread/42987.aspx</link><pubDate>Tue, 16 Jun 2009 01:49:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:42987</guid><dc:creator>djj66</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/42987.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=42987</wfw:commentRss><description>&lt;p&gt;Hi everyone, &lt;/p&gt;
&lt;p&gt;I have a strange intermittent problem on a form I have designed. I wonder if anyone has seen anything similar... Here&amp;#39;s a description&lt;/p&gt;
&lt;p&gt;I have 2 controls&amp;nbsp; (@StartTime, @EndTime) in a repeating table, which are dates, displayed as times. I then use a VBScript function, to calculate the time interval between the dates as a decimal (@TripTime). I then sum @TripTime over the table to get TotalTripTime (declared control, not from table). I then have another control @TimeCarryForward which is calculated as @PreviousTime + TotalTripTime.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Everything works fine most of the time, except that just occasionally the value in @TimeCarryforward is shown with the dotted red lines around the control&amp;nbsp;- as if my calculation is not recognised as a number. The calculation for @TimeCarryForward is&amp;nbsp; (round(TotalTripTime * 100) / 100) + @PreviousTime&lt;/p&gt;
&lt;p&gt;&amp;nbsp;The &amp;quot;round&amp;quot; function is an attempt to avoid this problem.. It appeared to fix the problem for a certain set of problem times, but then the problem appears for another set of times. Even changing the times slighty can cause the problem to appear/go away, so I&amp;#39;m baffled as to what might cause this.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Has anyone seen anything similar?&lt;/p&gt;
&lt;p&gt;thanks again,&lt;/p&gt;
&lt;p&gt;david&lt;/p&gt;</description></item></channel></rss>