<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Help writing a formula</title><link>https://www.infopathdev.com:443/forums/thread/108781.aspx</link><pubDate>Mon, 05 Dec 2016 15:46:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:108781</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/108781.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=108781</wfw:commentRss><description>I like Michael&amp;#39;s suggestion. Basically - rules run when the field with the rule is changed. So, you have a variety of options here. You could put the same rule on all of the fields involved. You could add a button, like Michael suggested. You could use a calculated value, and just hide that value if the first field is = 0. Lots of options! :)</description></item><item><title>Re: Help writing a formula</title><link>https://www.infopathdev.com:443/forums/thread/108780.aspx</link><pubDate>Mon, 05 Dec 2016 12:49:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:108780</guid><dc:creator>Michael Hauck</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/108780.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=108780</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;In that case you might take a different approach and use a button control to trigger the calculation&amp;nbsp;/ recalculation when the form is used. That way your user&amp;nbsp;could&amp;nbsp;fill in&amp;nbsp;the &amp;#39;2016 (Deficit / Surplus&amp;#39; control filled in first and then the Text2, Text3, Text4, etc. controls next - the logical flow.&amp;nbsp; Simply enter a text instruction at the appropriate location in the template telling the user to click the &amp;quot;Calculate&amp;quot; button after updating the Text2, Text3, Text4, etc. controls.&amp;nbsp; By setting up the calculation rules on the button control, you can make it seem logical to the user.&lt;/p&gt;&lt;p&gt;&amp;nbsp;Just a thought.&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Help writing a formula</title><link>https://www.infopathdev.com:443/forums/thread/108776.aspx</link><pubDate>Sun, 04 Dec 2016 18:06:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:108776</guid><dc:creator>forengland</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/108776.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=108776</wfw:commentRss><description>Thanks Hilary.  I didn&amp;#39;t even think of a rule.  I&amp;#39;ve tried to modify yours to act like I need mine to.  It looks like I need to have the fields I need to add or subtract entered in the control before I enter text in the control with the action.  The flow of the form would be to enter in the &amp;#39;2016 (Deficit) / Surplus&amp;#39; number and then enter in the amounts (i.e. Text2, Text3, Text4) to be added or subtracted from that number.  It only works if the &amp;#39;2016 (Deficit) / Surplus&amp;#39; control (Text1) amount is entered after the Text2, Text3, Text4 amounts.  Weird.</description></item><item><title>Re: Help writing a formula</title><link>https://www.infopathdev.com:443/forums/thread/108756.aspx</link><pubDate>Thu, 01 Dec 2016 20:38:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:108756</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/108756.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=108756</wfw:commentRss><description>You should add a new field to your form for the value of this calculation if you don&amp;#39;t already have one. Click on Textbox1 and select Manage Rules from the ribbon. Add a new Action rule. Add a condition to check if Textbox1 is equal to 0, and if it is, you can set your new field to the value of the calculation you need - it may be (-1*Texbox2) + (-1*Textbox3) + etc.... You get the idea. I&amp;#39;m not sure what point you are stuck on, so if this is too basic, let me know. I&amp;#39;m attaching a simple sample. Save the linked file locally. Right click the local copy and select Design. From there you can preview, look at the rules, etc. Testing with a sample is less scary than changing your existing form. :)</description></item><item><title>Help writing a formula</title><link>https://www.infopathdev.com:443/forums/thread/108755.aspx</link><pubDate>Thu, 01 Dec 2016 19:56:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:108755</guid><dc:creator>forengland</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/108755.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=108755</wfw:commentRss><description>I&amp;#39;m newer than new when it comes to InfoPath and formulas.  I&amp;#39;ve been &amp;#39;selected&amp;#39; to update an existing form because I happen to show interest...not talent.  I need to do the following:

If [Textbox1]  0, Sum (-[Textbox2]-[Textbox3]-[Textbox4]+[Textbox5]+[Textbox6]+[Textbox7]

Any help would be much appreciated.  I don&amp;#39;t really know what to search for!</description></item></channel></rss>