<?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>Re: IF/THEN statement</title><link>https://www.infopathdev.com:443/forums/thread/73892.aspx</link><pubDate>Thu, 12 Jan 2012 17:30:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:73892</guid><dc:creator>Whitney Jones</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/73892.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=73892</wfw:commentRss><description>&lt;p&gt;That worked perfectly......I can&amp;#39;t tell you how much I appreciate the help.&amp;nbsp; &lt;/p&gt;</description></item><item><title>Re: IF/THEN statement</title><link>https://www.infopathdev.com:443/forums/thread/73831.aspx</link><pubDate>Thu, 12 Jan 2012 00:52:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:73831</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/73831.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=73831</wfw:commentRss><description>&lt;p&gt;What about adding one more field to the data source - called Subtotal (or something that makes sense to you). It doesn&amp;#39;t have to show on the form - just add it to the data source. It&amp;#39;s default value could be the formula you have above&amp;nbsp;-&amp;nbsp; &amp;quot;Total Expenses&amp;quot; - &amp;quot;Less Company Paid&amp;quot; - &amp;quot;Less Travel Advance&amp;quot; - &amp;quot;Less Personal Expense&amp;quot;. &lt;/p&gt;
&lt;p&gt;Then, put a rule on this field - that when it changes, if the value is greater than zero, set your Due To Employee field to its value, otherwise, set the Due To Employee to 0.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m attaching a simple sample form - save it locally, and right click and select Design to open in design mode. Then you can take a look and try it out in preview.&lt;/p&gt;</description></item><item><title>IF/THEN statement</title><link>https://www.infopathdev.com:443/forums/thread/73830.aspx</link><pubDate>Wed, 11 Jan 2012 23:17:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:73830</guid><dc:creator>Whitney Jones</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/73830.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=73830</wfw:commentRss><description>&lt;p&gt;Okay so here is the setup and question that I have.&lt;/p&gt;
&lt;p&gt;I am working on a expense report form and I have the following fields:&amp;nbsp; &amp;quot;Total Expenses&amp;quot;, &amp;quot;Less Company Paid&amp;quot;, Less Travel Advance&amp;quot;, &amp;quot;Less Personal Expense&amp;quot;, &amp;quot;Due to Employee&amp;quot;, and &amp;quot;Due From Employee&amp;quot;.&amp;nbsp; In the &amp;quot;Due to Employee&amp;quot; field I want to take the &amp;quot;Total Expenses&amp;quot; - &amp;quot;Less Company Paid&amp;quot; - &amp;quot;Less Travel Advance&amp;quot; - &amp;quot;Less Personal Expense&amp;quot;.&amp;nbsp; Simple enough, I have that figured out but now here is the tricky part I need the field to only put a total in if it is greater than 0, if not then just 0.&amp;nbsp; I have tried rules and cant figure out what else to do.&amp;nbsp; Can someone help?&lt;/p&gt;</description></item></channel></rss>