<?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: Data Validation - Compare 2 fields</title><link>https://www.infopathdev.com:443/forums/thread/54210.aspx</link><pubDate>Tue, 27 Apr 2010 12:55:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:54210</guid><dc:creator>mark_jam3s</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/54210.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=54210</wfw:commentRss><description>&lt;p&gt;Not sure if the screenshot will be of much help! :)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;img title="Screenshot" style="WIDTH:1061px;HEIGHT:475px;" height="475" alt="Screenshot" src="http://img232.imageshack.us/img232/9520/screenshotdl.jpg" width="1061" /&gt;&lt;/p&gt;
&lt;p&gt;Whatever is entered into the &amp;#39;SmearTakerCode&amp;#39; text box, I want to compare with my secondary data source&amp;nbsp;field &amp;#39;CODE&amp;#39;&lt;/p&gt;
&lt;p&gt;If &amp;#39;SmearTakerCode&amp;#39; does NOT appear in &amp;#39;CODE&amp;#39; for a message to display.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thanks for any help&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Data Validation - Compare 2 fields</title><link>https://www.infopathdev.com:443/forums/thread/54095.aspx</link><pubDate>Fri, 23 Apr 2010 17:07:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:54095</guid><dc:creator>Selarim</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/54095.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=54095</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Mark, could you show the sceenshot (I&amp;#39;m not sure if I understood)?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;; ) &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Data Validation - Compare 2 fields</title><link>https://www.infopathdev.com:443/forums/thread/53888.aspx</link><pubDate>Tue, 20 Apr 2010 09:16:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53888</guid><dc:creator>mark_jam3s</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53888.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=53888</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I&amp;#39;m trying to do some validation on a data entry field but can&amp;#39;t seem to get it to work!&lt;/p&gt;
&lt;p&gt;I have a form which is connected to my main SQL data source.&amp;nbsp; &lt;br /&gt;Whithin this form is a Text field which is bound to a field called&amp;nbsp;STCODE.&amp;nbsp; When the form is compleated the value in the STCODE field is submitted to the SQL database.&lt;br /&gt;&lt;br /&gt;I have also set up a second SQL data connection which is a list of around 30,000 valid STCODES.&amp;nbsp; &lt;br /&gt;The name of the secondary&amp;nbsp;field is called CODE.&amp;nbsp; I only use this field for comparison, not entering data.&lt;/p&gt;
&lt;p&gt;What&amp;nbsp;I would like&amp;nbsp;to do is when a user&amp;nbsp;types in&amp;nbsp;an STCODE and moves to the next field, to check if what the user has entered in the STCODE field is already in the secondary data connection field of CODE.&lt;/p&gt;
&lt;p&gt;If the STCODE appears in CODE the code is valid and the user can carry on with the rest of the form.&amp;nbsp; &lt;br /&gt;If STCODE does not appreas in CODE show an error message.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The steps I have followed are:&lt;/p&gt;
&lt;p&gt;Clicked on STCODE text box properties.&lt;/p&gt;
&lt;p&gt;Clicked Rules and added the condition &amp;quot;STCODE is not equal to CODE&amp;quot; to select the CODE field I used the &amp;quot;select a field of group..&amp;quot; and navigated to the secondary data source.&lt;/p&gt;
&lt;p&gt;Added Action to show a dialog box with invalid code message.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve found this thread but I&amp;#39;m still having no joy :( &lt;/p&gt;&lt;a href="http://www.infopathdev.com/forums/p/7968/29029.aspx#29029"&gt;http://www.infopathdev.com/forums/p/7968/29029.aspx#29029&lt;/a&gt; 
&lt;p&gt;Have&amp;nbsp;I actually got to enter formula in the condition?&lt;/p&gt;
&lt;p&gt;Not sure where I&amp;#39;m going wrong??!?&lt;/p&gt;
&lt;p&gt;Any help would be much appreciated.&lt;/p&gt;</description></item></channel></rss>