<?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>Multiple Data Validation - Problems</title><link>https://www.infopathdev.com:443/forums/thread/63563.aspx</link><pubDate>Wed, 26 Jan 2011 11:30:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:63563</guid><dc:creator>duffer73</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/63563.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=63563</wfw:commentRss><description>&lt;p&gt;I have two controls.&amp;nbsp; The first is a drop down selector with options of 1-5.&amp;nbsp; The second is a text box.&amp;nbsp; Both are set to use Data Type: Whole Number.&lt;/p&gt;
&lt;p&gt;I then want to use Data Valaidation to ensure the following;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;If field 1 is set to 1 then field 2 must be between 0 and 49,&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;If field 1 is set to&amp;nbsp;2 then field 2 must be between&amp;nbsp;50 and 89, &lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;If field 1 is set to&amp;nbsp;3 then field 2 must be between 90 and 110, &lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;If field 1 is set to&amp;nbsp;4 then field 2 must be between&amp;nbsp;111 and 150, &lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;If field 1 is set to&amp;nbsp;5 then field 2 must be between 151 and 200&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;My conditions&amp;nbsp;are;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;If field 1 = 1 AND field 2 is greater&amp;nbsp;49 display error 1&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;If field 1 =&amp;nbsp;2 AND field 2 is less than 50 OR greater than&amp;nbsp;89 display error 2&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;
&lt;div&gt;If field 1 =&amp;nbsp;3 AND field 2 is less than 90 OR greater than&amp;nbsp;110 display error 3&lt;/div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;If field 1 =&amp;nbsp;4 AND field 2 is less than 111 OR greater than&amp;nbsp;150 display error 4&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;If field 1 =&amp;nbsp;5 AND field 2 is less than 151 OR greater than&amp;nbsp;200 display error 5&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;When testing it works fine for condition 1 and also for condition 2, but if for example&amp;nbsp;field 1 is set to 3 AND field 2 is set to 100 (which should be a valid condition) it throws error 2 at me.&amp;nbsp; In fact it throws error 2 at me if field 1 is set to 3,4, or 5.&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;It only seems to work fine for the first two conditions, if i try and test it for condition 3,4 or 5 then regardless of the value in field 2 it throws error 2 at me.&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;Any advice or help appreciated!&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;Regs,&lt;/div&gt;
&lt;div&gt;Richard&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</description></item></channel></rss>