<?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: VB and repeating group.</title><link>https://www.infopathdev.com:443/forums/thread/22085.aspx</link><pubDate>Mon, 30 Jul 2007 13:56:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:22085</guid><dc:creator>Catharine</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/22085.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=22085</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi&lt;/p&gt;&lt;p&gt;Thank you soooo much.&amp;nbsp; I wasn&amp;#39;t even considering the use of XPATH - I hope this will be my Eureka moment with INFOPATH.&amp;nbsp; I have been trying to use the solution you posted for the Primary field and cannot get it to work - yet - I have tried a number of iterations.&amp;nbsp; At the moment&amp;nbsp;the Primary field is highlighted in red all the time.&amp;nbsp;And the screen tip and message do not come up at all.&lt;/p&gt;&lt;p&gt;I have the data source set exactly as your example.&amp;nbsp; The primary field is a check box with yes and no values.&amp;nbsp; &lt;/p&gt;&lt;p&gt;In the data validation screen the condition is&amp;nbsp; the expression&amp;nbsp;&amp;nbsp; &amp;quot;../preceding-sibling::my:group2[my:Primary = &amp;#39;yes&amp;#39;]&amp;quot;&amp;nbsp; (I can&amp;#39;t seem to show u a screen copy)&lt;/p&gt;&lt;p&gt;Have I missed something out ?&lt;/p&gt;&lt;p&gt;Catharine&lt;/p&gt;</description></item><item><title>Re: VB and repeating group.</title><link>https://www.infopathdev.com:443/forums/thread/22063.aspx</link><pubDate>Fri, 27 Jul 2007 16:35:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:22063</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/22063.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=22063</wfw:commentRss><description>&lt;p&gt;Hi Catharine,&lt;/p&gt;&lt;p&gt;I think you are underestimating the power of XPath! :)&amp;nbsp; &lt;/p&gt;&lt;p&gt;Let&amp;#39;s assume your schema is this:&lt;/p&gt;&lt;p&gt;my:myFields&lt;br /&gt;--my:group1&lt;br /&gt;----my:group2&lt;br /&gt;------my:FirstName&lt;br /&gt;------my:SecondName&lt;br /&gt;------my:Info1&lt;br /&gt;------my:Info2&lt;br /&gt;------my:Primary&lt;br /&gt;------my:Info3&lt;br /&gt;------my:ID&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Only one primary = yes&lt;/strong&gt;&lt;br /&gt;I would put a data validation rule on t he my:Primary node.&amp;nbsp; Double-click the node in the designer, go to &amp;quot;Rules and Data Validation&amp;quot; tab, and click to add a custom Data Validation.&amp;nbsp; Use the condition &amp;quot;../preceding-sibling::my:group2[my:Primary = &amp;#39;yes&amp;#39;]&amp;quot;, and then setup a custom message.&amp;nbsp; Now, when they insert a new row and try to check Primary even tho one above is checked it will be outlined in red as a data validation error.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Ensure firstName/LastName combo is unique&lt;br /&gt;&lt;/strong&gt;This one is a little more tough. You might have to use code here, but try this first.&amp;nbsp; Same as above, just use this condition on the my:FirstName and my:SecondName nodes (repeat on both nodes): &amp;quot;../preceding-sibling::my:group2[ translate( &amp;quot;ABCDEFGHIJKLMNOPQRSTUVWXYZ&amp;quot;, &amp;quot;abcdefghijklmnopqrstuvwxyz&amp;quot;, concat(my:FirstName, my:SecondName)) = concat(current()/my:FirstName, current()/my:SecondName) ]&amp;quot;.&amp;nbsp; You might have to play around with the placement of the current(). Use translate on the second part of the condition, too.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Generate a unique number for ever record in the repeating table&lt;/strong&gt;&lt;br /&gt;Why do you need to do this? You can do it by setting the default value to &amp;quot;count(../preceding-sibling::my:group2) + 1&amp;quot;.&amp;nbsp; We have a blog post on this in InfoPathdev.com&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Create a calculation and total based on Info3&lt;br /&gt;&lt;/strong&gt;Easy.&amp;nbsp; Set the default value of your total node to sum( /my:myFields/my:group1/my:group2/my:Info3 ).&lt;/p&gt;&lt;p&gt;&lt;strong&gt;FirstName/SecondName comparison to secondary DOM&lt;/strong&gt;&lt;br /&gt;Same as above, just point it to the secondary DOM.&lt;/p&gt;&lt;p&gt;&amp;nbsp;Well, that&amp;#39;s a lot to churn through, but you did ask quite a few questions!&amp;nbsp; Each one of them could be it&amp;#39;s own thread, haha.&amp;nbsp; You seem like a pretty adept programmer, but I think you are thinking about InfoPath wrong.&amp;nbsp; It&amp;#39;s a very data-centric programming model.&amp;nbsp; You should have a similar mindset with Infopath as you do when you are writing SQL applications.&amp;nbsp; Plus, XPath is kind of similar to SQL... kinda.&lt;/p&gt;&lt;p&gt;&amp;nbsp;Anyway, hope this helps!&amp;nbsp; Try searching around on the forums for answers to each of your individual questions, I know we have gone over some of them before.&lt;/p&gt;</description></item><item><title>Re: VB and repeating group.</title><link>https://www.infopathdev.com:443/forums/thread/22058.aspx</link><pubDate>Fri, 27 Jul 2007 15:01:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:22058</guid><dc:creator>Catharine</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/22058.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=22058</wfw:commentRss><description>&lt;p&gt;Hi, Thank you for your reply.&lt;/p&gt;&lt;p&gt;I have looked at the example.&amp;nbsp; None of my fields are dropdown lists but I have book marked it for the future...&lt;/p&gt;&lt;p&gt;Where to start...... I was trying to understand the process/method for comparing values in a repeating table for several&amp;nbsp;uses.&lt;/p&gt;&lt;p&gt;On part of my form&amp;nbsp;I need to collect person information (number indeterminate - and not dependent on other fields in form).&amp;nbsp; eg&lt;/p&gt;&lt;p&gt;&lt;table cellpadding="0" cellspacing="0" style="width:347pt;border-collapse:collapse;"&gt;&lt;tr style="height:32.25pt;"&gt;&lt;td class="xl65" style="width:48pt;height:32.25pt;background-color:transparent;border:windowtext 0.5pt solid;"&gt;&lt;font face="Calibri" size="3"&gt;First Name&lt;/font&gt;&lt;/td&gt;&lt;td class="xl65" style="border-right:windowtext 0.5pt solid;border-top:windowtext 0.5pt solid;border-left:windowtext;width:48pt;border-bottom:windowtext 0.5pt solid;background-color:transparent;"&gt;&lt;font face="Calibri" size="3"&gt;Second Name&lt;/font&gt;&lt;/td&gt;&lt;td class="xl66" style="border-right:windowtext 0.5pt solid;border-top:windowtext 0.5pt solid;border-left:windowtext;width:48pt;border-bottom:windowtext 0.5pt solid;background-color:transparent;"&gt;&lt;font face="Calibri" size="3"&gt;Info1&lt;/font&gt;&lt;/td&gt;&lt;td class="xl66" style="border-right:windowtext 0.5pt solid;border-top:windowtext 0.5pt solid;border-left:windowtext;width:48pt;border-bottom:windowtext 0.5pt solid;background-color:transparent;"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;Info2&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/td&gt;&lt;td class="xl66" style="border-right:windowtext 0.5pt solid;border-top:windowtext 0.5pt solid;border-left:windowtext;width:48pt;border-bottom:windowtext 0.5pt solid;background-color:transparent;"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;Primary&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/td&gt;&lt;td class="xl66" style="border-right:windowtext 0.5pt solid;border-top:windowtext 0.5pt solid;border-left:windowtext;width:48pt;border-bottom:windowtext 0.5pt solid;background-color:transparent;"&gt;&lt;font face="Calibri" size="3"&gt;Info 3&lt;/font&gt;&lt;/td&gt;&lt;td class="xl65" style="border-right:windowtext 0.5pt solid;border-top:windowtext 0.5pt solid;border-left:windowtext;width:59pt;border-bottom:windowtext 0.5pt solid;background-color:transparent;"&gt;&lt;font face="Calibri" size="3"&gt;Generated Number&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height:15pt;"&gt;&lt;td class="xl66" style="border-right:windowtext 0.5pt solid;border-top:windowtext;border-left:windowtext 0.5pt solid;border-bottom:windowtext 0.5pt solid;height:15pt;background-color:transparent;"&gt;&lt;font face="Calibri" size="3"&gt;Fred&lt;/font&gt;&lt;/td&gt;&lt;td class="xl66" style="border-right:windowtext 0.5pt solid;border-top:windowtext;border-left:windowtext;border-bottom:windowtext 0.5pt solid;background-color:transparent;"&gt;&lt;font face="Calibri" size="3"&gt;Blogs&lt;/font&gt;&lt;/td&gt;&lt;td class="xl66" style="border-right:windowtext 0.5pt solid;border-top:windowtext;border-left:windowtext;border-bottom:windowtext 0.5pt solid;background-color:transparent;"&gt;&lt;font face="Calibri" size="3"&gt;a&lt;/font&gt;&lt;/td&gt;&lt;td class="xl66" style="border-right:windowtext 0.5pt solid;border-top:windowtext;border-left:windowtext;border-bottom:windowtext 0.5pt solid;background-color:transparent;"&gt;&lt;font face="Calibri" size="3"&gt;b&lt;/font&gt;&lt;/td&gt;&lt;td class="xl66" style="border-right:windowtext 0.5pt solid;border-top:windowtext;border-left:windowtext;border-bottom:windowtext 0.5pt solid;background-color:transparent;"&gt;&lt;font face="Calibri" size="3"&gt;no&lt;/font&gt;&lt;/td&gt;&lt;td align="right" class="xl66" style="border-right:windowtext 0.5pt solid;border-top:windowtext;border-left:windowtext;border-bottom:windowtext 0.5pt solid;background-color:transparent;"&gt;&lt;font face="Calibri" size="3"&gt;1&lt;/font&gt;&lt;/td&gt;&lt;td align="right" class="xl66" style="border-right:windowtext 0.5pt solid;border-top:windowtext;border-left:windowtext;border-bottom:windowtext 0.5pt solid;background-color:transparent;"&gt;&lt;font face="Calibri" size="3"&gt;10&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height:15pt;"&gt;&lt;td class="xl66" style="border-right:windowtext 0.5pt solid;border-top:windowtext;border-left:windowtext 0.5pt solid;border-bottom:windowtext 0.5pt solid;height:15pt;background-color:transparent;"&gt;&lt;font face="Calibri" size="3"&gt;George&lt;/font&gt;&lt;/td&gt;&lt;td class="xl66" style="border-right:windowtext 0.5pt solid;border-top:windowtext;border-left:windowtext;border-bottom:windowtext 0.5pt solid;background-color:transparent;"&gt;&lt;font face="Calibri" size="3"&gt;blogs&lt;/font&gt;&lt;/td&gt;&lt;td class="xl66" style="border-right:windowtext 0.5pt solid;border-top:windowtext;border-left:windowtext;border-bottom:windowtext 0.5pt solid;background-color:transparent;"&gt;&lt;font face="Calibri" size="3"&gt;c&lt;/font&gt;&lt;/td&gt;&lt;td class="xl66" style="border-right:windowtext 0.5pt solid;border-top:windowtext;border-left:windowtext;border-bottom:windowtext 0.5pt solid;background-color:transparent;"&gt;&lt;font face="Calibri" size="3"&gt;d&lt;/font&gt;&lt;/td&gt;&lt;td class="xl66" style="border-right:windowtext 0.5pt solid;border-top:windowtext;border-left:windowtext;border-bottom:windowtext 0.5pt solid;background-color:transparent;"&gt;&lt;font face="Calibri" size="3"&gt;no&lt;/font&gt;&lt;/td&gt;&lt;td align="right" class="xl66" style="border-right:windowtext 0.5pt solid;border-top:windowtext;border-left:windowtext;border-bottom:windowtext 0.5pt solid;background-color:transparent;"&gt;&lt;font face="Calibri" size="3"&gt;6&lt;/font&gt;&lt;/td&gt;&lt;td align="right" class="xl66" style="border-right:windowtext 0.5pt solid;border-top:windowtext;border-left:windowtext;border-bottom:windowtext 0.5pt solid;background-color:transparent;"&gt;&lt;font face="Calibri" size="3"&gt;11&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height:15pt;"&gt;&lt;td class="xl66" style="border-right:windowtext 0.5pt solid;border-top:windowtext;border-left:windowtext 0.5pt solid;border-bottom:windowtext 0.5pt solid;height:15pt;background-color:transparent;"&gt;&lt;font face="Calibri" size="3"&gt;James&lt;/font&gt;&lt;/td&gt;&lt;td class="xl66" style="border-right:windowtext 0.5pt solid;border-top:windowtext;border-left:windowtext;border-bottom:windowtext 0.5pt solid;background-color:transparent;"&gt;&lt;font face="Calibri" size="3"&gt;Doe&lt;/font&gt;&lt;/td&gt;&lt;td class="xl66" style="border-right:windowtext 0.5pt solid;border-top:windowtext;border-left:windowtext;border-bottom:windowtext 0.5pt solid;background-color:transparent;"&gt;&lt;font face="Calibri" size="3"&gt;e&lt;/font&gt;&lt;/td&gt;&lt;td class="xl66" style="border-right:windowtext 0.5pt solid;border-top:windowtext;border-left:windowtext;border-bottom:windowtext 0.5pt solid;background-color:transparent;"&gt;&lt;font face="Calibri" size="3"&gt;f&lt;/font&gt;&lt;/td&gt;&lt;td class="xl66" style="border-right:windowtext 0.5pt solid;border-top:windowtext;border-left:windowtext;border-bottom:windowtext 0.5pt solid;background-color:transparent;"&gt;&lt;font face="Calibri" size="3"&gt;yes&lt;/font&gt;&lt;/td&gt;&lt;td align="right" class="xl66" style="border-right:windowtext 0.5pt solid;border-top:windowtext;border-left:windowtext;border-bottom:windowtext 0.5pt solid;background-color:transparent;"&gt;&lt;font face="Calibri" size="3"&gt;9&lt;/font&gt;&lt;/td&gt;&lt;td align="right" class="xl66" style="border-right:windowtext 0.5pt solid;border-top:windowtext;border-left:windowtext;border-bottom:windowtext 0.5pt solid;background-color:transparent;"&gt;&lt;font face="Calibri" size="3"&gt;12&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height:15pt;"&gt;&lt;td class="xl66" style="border-right:windowtext 0.5pt solid;border-top:windowtext;border-left:windowtext 0.5pt solid;border-bottom:windowtext 0.5pt solid;height:15pt;background-color:transparent;"&gt;&lt;font face="Calibri" size="3"&gt;Fred&lt;/font&gt;&lt;/td&gt;&lt;td class="xl66" style="border-right:windowtext 0.5pt solid;border-top:windowtext;border-left:windowtext;border-bottom:windowtext 0.5pt solid;background-color:transparent;"&gt;&lt;font face="Calibri" size="3"&gt;Derf&lt;/font&gt;&lt;/td&gt;&lt;td class="xl66" style="border-right:windowtext 0.5pt solid;border-top:windowtext;border-left:windowtext;border-bottom:windowtext 0.5pt solid;background-color:transparent;"&gt;&lt;font face="Calibri" size="3"&gt;g&lt;/font&gt;&lt;/td&gt;&lt;td class="xl66" style="border-right:windowtext 0.5pt solid;border-top:windowtext;border-left:windowtext;border-bottom:windowtext 0.5pt solid;background-color:transparent;"&gt;&lt;font face="Calibri" size="3"&gt;h&lt;/font&gt;&lt;/td&gt;&lt;td class="xl66" style="border-right:windowtext 0.5pt solid;border-top:windowtext;border-left:windowtext;border-bottom:windowtext 0.5pt solid;background-color:transparent;"&gt;&lt;font face="Calibri" size="3"&gt;no&lt;/font&gt;&lt;/td&gt;&lt;td align="right" class="xl66" style="border-right:windowtext 0.5pt solid;border-top:windowtext;border-left:windowtext;border-bottom:windowtext 0.5pt solid;background-color:transparent;"&gt;&lt;font face="Calibri" size="3"&gt;1&lt;/font&gt;&lt;/td&gt;&lt;td align="right" class="xl66" style="border-right:windowtext 0.5pt solid;border-top:windowtext;border-left:windowtext;border-bottom:windowtext 0.5pt solid;background-color:transparent;"&gt;&lt;font face="Calibri" size="3"&gt;13&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/p&gt;&lt;p&gt;I have set up a repeating table for the information.&amp;nbsp;&lt;br /&gt;I need to ensure that only one of the records in that repeating table has primary set to yes.&lt;br /&gt;I need to ensure that the combination of first name/second name is unique (even if they are in different cases)&lt;br /&gt;I need to&amp;nbsp;generate a unique number to each record in the repeating table&lt;br /&gt;I need to create a calculation&amp;nbsp; and total based on info3&lt;br /&gt;I need to compare the combination of first name/second name with values in a secondary data source - again regardless of case - have only managed to do the compare against the first record in the secondary data source&lt;/p&gt;&lt;p&gt;As yet I have failed to do these things without resorting to code.....&lt;/p&gt;&lt;p&gt;My though process was....&lt;br /&gt;1.Trigger&amp;nbsp;Event on change in the Repeating Table&lt;br /&gt;2. If the change was in the primary field - loop through all the records and count where the primary was yes - then give an error if necessary&lt;br /&gt;3. If the change was in the column requiring calculation/total then loop through, perform total and set field value outside of repeating table &lt;br /&gt;4. If the change was in the name fields again loop through and compare with other values&lt;/p&gt;&lt;p&gt;Have I been going in completely the wrong direction?&amp;nbsp;&lt;/p&gt;&lt;p&gt;Catharine&lt;/p&gt;</description></item><item><title>Re: VB and repeating group.</title><link>https://www.infopathdev.com:443/forums/thread/22050.aspx</link><pubDate>Fri, 27 Jul 2007 13:32:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:22050</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/22050.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=22050</wfw:commentRss><description>&lt;p&gt;Hi Catharine,&lt;/p&gt;&lt;p&gt;If you are just trying to do data validation, why use code at all?&amp;nbsp; Here is a tutorial on narrowing down drop-down list choices depending on the choices made in other rows:&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.infopathdev.com/blogs/matt/archive/2006/05/23/Filter-a-Repeating-Drop_2D00_Down-List-on-Previous-and-Future-Selections.aspx"&gt;http://www.infopathdev.com/blogs/matt/archive/2006/05/23/Filter-a-Repeating-Drop_2D00_Down-List-on-Previous-and-Future-Selections.aspx&lt;/a&gt;&lt;/p&gt;&lt;p&gt;If this is not what you&amp;#39;re trying to do, can tell us what you&amp;#39;re trying to accomplish - there might be a better way altogether.&lt;/p&gt;</description></item><item><title>VB and repeating group.</title><link>https://www.infopathdev.com:443/forums/thread/21980.aspx</link><pubDate>Wed, 25 Jul 2007 18:00:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:21980</guid><dc:creator>Catharine</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/21980.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=21980</wfw:commentRss><description>&lt;p&gt;Hi &lt;/p&gt;&lt;p&gt;First - I am new to VB so I know that I am missing something really trivial, but&amp;nbsp;I have been looking at this for days and my head hurts from the brickwalls I am hitting.&amp;nbsp; So please take it easy on me !!&lt;/p&gt;&lt;p&gt;I have a form with one ordinary field, and one repeating group with 4 fields in the group. - here is the xml from my testing&amp;nbsp; (Sorry for the Harry Potter names )&lt;/p&gt;&lt;p&gt;&amp;lt;my:Name1&amp;gt;Hello&amp;lt;/my:Name1&amp;gt;&lt;br /&gt;&amp;lt;my:TestGroup1&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;my:TG1Field1&amp;gt;Harry&amp;lt;/my:TG1Field1&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;my:TG1Field2&amp;gt;Ron&amp;lt;/my:TG1Field2&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;my:TG1Field3 xmlns:xsi=&amp;quot;http://www.w3.org/2001/XMLSchema-instance&amp;quot;&amp;gt;5&amp;lt;/my:TG1Field3&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;my:TG1Field4&amp;gt;false&amp;lt;/my:TG1Field4&amp;gt;&lt;br /&gt;&amp;lt;/my:TestGroup1&amp;gt;&lt;br /&gt;&amp;lt;my:TestGroup1&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;my:TG1Field1&amp;gt;Fred&amp;lt;/my:TG1Field1&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;my:TG1Field2&amp;gt;George&amp;lt;/my:TG1Field2&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;my:TG1Field3&amp;gt;12&amp;lt;/my:TG1Field3&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;my:TG1Field4&amp;gt;false&amp;lt;/my:TG1Field4&amp;gt;&lt;br /&gt;&amp;lt;/my:TestGroup1&amp;gt;&amp;lt;my:TestGroup1&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;my:TG1Field1&amp;gt;Albus&amp;lt;/my:TG1Field1&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;my:TG1Field2&amp;gt;&amp;lt;/my:TG1Field2&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;my:TG1Field3 xmlns:xsi=&amp;quot;http://www.w3.org/2001/XMLSchema instance&amp;quot;xsi:nil=&amp;quot;true&amp;quot;&amp;gt;&amp;lt;/my:TG1Field3&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;my:TG1Field4&amp;gt;false&amp;lt;/my:TG1Field4&amp;gt;&lt;br /&gt;&amp;lt;/my:TestGroup1&amp;gt;&amp;lt;/my:myFields&amp;gt;&lt;/p&gt;&lt;p&gt;I have put a validation check on the repeating group. I don&amp;#39;t know how many repeating lines there will be.&lt;/p&gt;&lt;p&gt;When there is a change to the repeating group I want to go to the first&amp;nbsp;record, get the value of eg field1,&amp;nbsp;compare it to other values in the other field1s and field2s and perform an action.....&amp;nbsp;&lt;/p&gt;&lt;p&gt;I have tried ....below.... and I only get the record that triggered the validation returned. - and the g1.current.value is all 4 fields run together.&amp;nbsp;&lt;/p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;p&gt;Dim&lt;font size="2"&gt; myform &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;font size="2"&gt; XPathNavigator = e.Site.CreateNavigator&lt;br /&gt;&lt;font color="#0000ff" size="2"&gt;Dim&lt;/font&gt;&lt;font size="2"&gt; mygroupnam &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;String&lt;/font&gt;&lt;font size="2"&gt; = e.Site.Name&lt;br /&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;Dim&lt;/font&gt;&lt;font size="2"&gt; g1 &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;font size="2"&gt; XPathNodeIterator = myform.Select(mygroupnam &amp;amp; &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;/*&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager)&lt;br /&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;Do&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;While&lt;/font&gt;&lt;font size="2"&gt; g1.MoveNext&lt;br /&gt;MessageBox.Show(g1.Current.Value)&lt;br /&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;Loop&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;p&gt;I have also tried&amp;nbsp; Select(mygroupnam &amp;amp; &lt;font color="#a31515" size="2"&gt;&amp;quot;/TG1Field1&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager) and the g1.current.value is all 4 fields run together - and the count is 0&lt;/font&gt;&lt;/p&gt;&lt;p&gt;I have tried various iterations (movetoParent, movetoChild, movetoFirstChild, SelectChildren, .....)and I cannot seem to get the four fields separated, and the repeating groups out at the same time.&lt;/p&gt;&lt;p&gt;I know I am doing something fundamentally wrong - I have tried reading the help and &amp;quot;working with XML Data using the Xpathnavigator clss in Infopath 2007 form templates&amp;quot; but nothing is triggering a Eureka moment.&amp;nbsp;&amp;nbsp; I would be grateful for your help.&lt;/p&gt;&lt;p&gt;Catharine&lt;/p&gt;</description></item></channel></rss>