<?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>Invalid data error with text box calculations</title><link>https://www.infopathdev.com:443/forums/thread/39716.aspx</link><pubDate>Thu, 19 Mar 2009 12:54:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:39716</guid><dc:creator>pablavo</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/39716.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=39716</wfw:commentRss><description>&lt;p&gt;Hi there,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;This is a short one and I hope someone has come accross this as well.&lt;/p&gt;
&lt;p&gt;I have a text box (txtAmount)&amp;nbsp;which has a calculation for its value.&amp;nbsp; The calculation&amp;nbsp; multiplies two fields together.&lt;/p&gt;
&lt;p&gt;One&amp;nbsp;field stores a number of days (Days)&amp;nbsp;worked by someone.&amp;nbsp; This is stored as a decimal.&amp;nbsp; The other stores Currency amounts.&amp;nbsp;(Costs).&amp;nbsp; Sometimes depending on the Currency amount I get an &amp;quot;Invalid Data&amp;#39; error around txtAmount.&amp;nbsp; For example, if (Days) has the value 1.2 and it multiplies £471, I get the error.&amp;nbsp; If (Days) is 1.75, I don&amp;#39;t get the error.&lt;/p&gt;
&lt;p&gt;The calculation is this:&lt;/p&gt;
&lt;p&gt;@Days * @Cost&lt;/p&gt;
&lt;p&gt;Does anyone know why this is and if there&amp;#39;s anything I need to do to prevent this error.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thanks for any help.&lt;/p&gt;</description></item></channel></rss>