<?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: Counting data base records.</title><link>https://www.infopathdev.com:443/forums/thread/68889.aspx</link><pubDate>Tue, 02 Aug 2011 00:19:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:68889</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/68889.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=68889</wfw:commentRss><description>&lt;p&gt;Before we go too far down that path, may I ask - are any other applications using your database? It seems to me that the best thing you could do if not is to normalize your database - this whole Occupations 1 -3, Ref 1 - 5, etc is going to be pretty nasty to maintain over the long run. It would make so much more sense to create proper tables and relationships.&lt;/p&gt;
&lt;p&gt;I hope you know, I intend no snark in that comment - and I realize you may just be stuck here with some messy legacy database. But if there is any chance you can change it - I&amp;#39;d sure take it if I were you.&lt;/p&gt;
&lt;p&gt;I see at least 4 tables here - one with the main Client information (basing that on the field called &amp;quot;ClientName&amp;quot;). Another table for Occupations, a table for Refs, and a table for Jdc. I think it would surprise you how much easier some of this would get with a proper, normalized database.&lt;/p&gt;</description></item><item><title>Re: Counting data base records.</title><link>https://www.infopathdev.com:443/forums/thread/68882.aspx</link><pubDate>Mon, 01 Aug 2011 23:18:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:68882</guid><dc:creator>ameros56</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/68882.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=68882</wfw:commentRss><description>&lt;p&gt;Hilary your awsome!! I just have one more question.....(I&amp;#39;m starting for feel like Lot from the old testament...LOL)&lt;/p&gt;
&lt;p&gt;I have three fields that collect titles.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;OccupationsOne, Occupation Two, OccuaptionThree&lt;/p&gt;
&lt;p&gt;if all fields held diffrent titles how could I use an expression box to diplay to contents of all locations in one expression box. &lt;/p&gt;
&lt;p&gt;for example &lt;/p&gt;
&lt;p&gt;OccupationsOne&amp;nbsp; OccupationTwo&amp;nbsp;&amp;nbsp; OccupationThree&lt;/p&gt;
&lt;p&gt;Teacher&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Plumber&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Coach&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Plumber&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; Coach&lt;/p&gt;
&lt;p&gt;I query for all locations in one expression box to get ( There would be two expression boxes, one for the title and one for the count) I need to get all the titles from the three fields so I can then count them.&lt;/p&gt;
&lt;p&gt;Teacher&amp;nbsp; 1&lt;/p&gt;
&lt;p&gt;Plumber 2&lt;/p&gt;
&lt;p&gt;Coach 2&lt;/p&gt;
&lt;p&gt;In a repeating table......Im so lost ......&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve attached an example in an effort to explain.&amp;nbsp; Please let me know if you need clarification.&lt;/p&gt;
&lt;p&gt;Your suggestions are always usefull and much appreciated. &lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;</description></item><item><title>Re: Counting data base records.</title><link>https://www.infopathdev.com:443/forums/thread/68870.aspx</link><pubDate>Mon, 01 Aug 2011 19:25:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:68870</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/68870.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=68870</wfw:commentRss><description>&lt;p&gt;Hi:&lt;/p&gt;
&lt;p&gt;Sure, you can add additional filters. I&amp;#39;m not sure which field it would be in your data source, so I&amp;#39;ll bold the piece you&amp;#39;ll need to change.&lt;/p&gt;
&lt;p&gt;count(VET1[@OccupationsOne = current()/@OccupationsOne and &lt;strong&gt;@SomeOtherField &lt;/strong&gt;= &amp;quot;1 - 2 Years&amp;quot;])&lt;/p&gt;
&lt;p&gt;Some things to note - that comparison is going to be case sensitive. So if your field actually stores &amp;quot;1 - 2 yEars&amp;quot; for example, you won&amp;#39;t have a match. Also, the comparison is going to care about spaces - &amp;quot;1-2&amp;quot; is not the same as &amp;quot;1 - 2&amp;quot;. &lt;/p&gt;</description></item><item><title>Re: Counting data base records.</title><link>https://www.infopathdev.com:443/forums/thread/68776.aspx</link><pubDate>Wed, 27 Jul 2011 17:37:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:68776</guid><dc:creator>ameros56</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/68776.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=68776</wfw:commentRss><description>&lt;p&gt;It&amp;#39;s working! Thank you&lt;/p&gt;
&lt;p&gt;I was wondering about your expression in the count field.&amp;nbsp; &amp;quot;count(VET1[@OccupationsOne = current()/@OccupationsOne])&amp;quot;.&amp;nbsp; Is there a way to filter for a second criteria?&amp;nbsp; I have another column in the main data source that stores &amp;quot;1 - 2 Years&amp;quot;, &amp;quot;2 - 5 Years&amp;quot; or &amp;quot;5 + Years&amp;quot; and I was hoping to display your count solution filtered by one of the three choices.&amp;nbsp;&amp;nbsp; &lt;/p&gt;
&lt;p&gt;any ideas?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank you Hilary. &lt;/p&gt;</description></item><item><title>Re: Counting data base records.</title><link>https://www.infopathdev.com:443/forums/thread/68739.aspx</link><pubDate>Tue, 26 Jul 2011 18:51:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:68739</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/68739.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=68739</wfw:commentRss><description>&lt;p&gt;Oh my. I made a mess of that expression. I think I over-thought it. Try this one. &lt;/p&gt;</description></item><item><title>Re: Counting data base records.</title><link>https://www.infopathdev.com:443/forums/thread/68729.aspx</link><pubDate>Tue, 26 Jul 2011 16:58:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:68729</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/68729.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=68729</wfw:commentRss><description>&lt;p&gt;Sounds like I need to adjust the XPath I&amp;#39;m using for the count expression - I&amp;#39;ll get that fixed later today and post a new version.&lt;/p&gt;</description></item><item><title>Re: Counting data base records.</title><link>https://www.infopathdev.com:443/forums/thread/68726.aspx</link><pubDate>Tue, 26 Jul 2011 16:17:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:68726</guid><dc:creator>ameros56</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/68726.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=68726</wfw:commentRss><description>&lt;p&gt;Hilary,&lt;/p&gt;
&lt;p&gt;Thank you for taking your time to help me.&amp;nbsp; I can&amp;#39;t tell you how much I appreciate it.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;Yes, the data will be stored in the main data source. &lt;/p&gt;
&lt;p&gt;Your example filtered out duplicates perfectly but the count was 5 all the way down when there were 2, 2 and 1.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;I tried to adjust it but didn&amp;#39;t get far.&amp;nbsp; If there is any time in your schedule to get me over this final hurdle I will be forever obliged.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thank you&lt;/p&gt;</description></item><item><title>Re: Counting data base records.</title><link>https://www.infopathdev.com:443/forums/thread/68708.aspx</link><pubDate>Tue, 26 Jul 2011 00:36:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:68708</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/68708.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=68708</wfw:commentRss><description>&lt;p&gt;Is it the main data source that will have all the records?&lt;/p&gt;
&lt;p&gt;I&amp;#39;m guessing a bit here, since I can&amp;#39;t run your query. But if my guesses are wrong in the attached sample, I&amp;#39;ll put together a sample form that I do have&amp;nbsp;a DB for, and see where I went wrong, okay?&lt;/p&gt;
&lt;p&gt;At any rate, give this a try, right click the link and save the xsn locally. Then right click the xsn to open in design mode. I&amp;#39;ll check this thread tomorrow and see if I&amp;#39;ve guessed right, okay?&lt;/p&gt;</description></item><item><title>Re: Counting data base records.</title><link>https://www.infopathdev.com:443/forums/thread/68707.aspx</link><pubDate>Mon, 25 Jul 2011 23:35:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:68707</guid><dc:creator>ameros56</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/68707.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=68707</wfw:commentRss><description>&lt;p&gt;Hilary,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I was trying to solve my problem before bothering you or anyone else.&amp;nbsp; I&amp;#39;m at a loss for a solution.&amp;nbsp; I was able to filter for unique values but I still get blank fields for the duplicate records and i was not evern close to getting it to count.. I really hope you can help me with this.&amp;nbsp; I need to be run a query that will return entries titles once but a count of thier occurance.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;Example of my data structure in access data base. &lt;/p&gt;
&lt;p&gt;OccupationsOne &lt;em&gt;&amp;lt;&amp;lt;&amp;lt;this is the column title and the data field.&amp;nbsp; My tree looks like this&amp;gt;&amp;gt;&amp;gt;myFields/my:dataFields/d:VET1/@OccupationsOne&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;teacher&lt;em&gt;&amp;nbsp; &amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;These are entries in the access rows and the informations I need to display. &lt;/em&gt;&lt;/p&gt;
&lt;p&gt;teacher&lt;/p&gt;
&lt;p&gt;coach&lt;/p&gt;
&lt;p&gt;coach&lt;/p&gt;
&lt;p&gt;counselor (whick is what I&amp;#39;m going to need after this project LOL)&lt;/p&gt;
&lt;p&gt;When I run a query in need the following display.&lt;/p&gt;
&lt;p&gt;teacher 2&lt;/p&gt;
&lt;p&gt;coach 2&lt;/p&gt;
&lt;p&gt;counselor 1.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;thank you very much for your time. &lt;/p&gt;
&lt;p&gt;Adolfo&lt;/p&gt;</description></item><item><title>Re: Counting data base records.</title><link>https://www.infopathdev.com:443/forums/thread/68642.aspx</link><pubDate>Fri, 22 Jul 2011 17:18:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:68642</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/68642.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=68642</wfw:commentRss><description>&lt;p&gt;Any chance you can post your template in a reply? Under the options tab.... I can get the syntax right for your form then....&lt;/p&gt;
&lt;p&gt;Generally, though, the problem with your expression is probably that you are using the field selector to get &amp;quot;@OccupationsOne&amp;quot; - so InfoPath will be using a relative XPath... and there will be only one that matches within that repeating group. Use the full XPath to the @OccupationsOne, or something like ../../dfs:NameofRepeatingGroup/@OccupationsOne so that you are going back up the tree to look at all instances of your repeating group (note that the XPath above is a complete guess, and there is probably 0% chance your repeating group is called &amp;quot;NameofRepeatingGroup&amp;quot;)&lt;/p&gt;</description></item><item><title>Re: Counting data base records.</title><link>https://www.infopathdev.com:443/forums/thread/68641.aspx</link><pubDate>Fri, 22 Jul 2011 17:07:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:68641</guid><dc:creator>ameros56</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/68641.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=68641</wfw:commentRss><description>&lt;p&gt;Wow Thank you for the quick response Hilary.... your responses have helped me a great deal in the past.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;&amp;nbsp;I was only wondering how I would condition an expression box to count duplicates in an access data base. I have the following ......count(@OccupationsOne[. = .])...... in the &amp;quot;counting&amp;quot; expression box but when I filter for uniques values in the repeating table the count come back 1 because only one title is being displayed.&amp;nbsp; I was wondering if there was a way to get infopath to look at the &amp;quot;@OccuaptionsOne&amp;quot; column only and return the corresponding numbers for the duplicate entries found there.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;This is the last piece of my puzzle so any help from you would be appreciated. thank you&lt;/p&gt;</description></item><item><title>Re: Counting data base records.</title><link>https://www.infopathdev.com:443/forums/thread/68640.aspx</link><pubDate>Fri, 22 Jul 2011 16:21:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:68640</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/68640.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=68640</wfw:commentRss><description>&lt;p&gt;Hi:&lt;/p&gt;
&lt;p&gt;Sounds like you are returing all the data to InfoPath and then need to aggregate it there? This can be done with conditional formatting and expression boxes, but it would probably be better to create a view in Access that aggregates that data and return the view. Fewer rows is going to make your form faster.... &lt;/p&gt;</description></item><item><title>Counting data base records.</title><link>https://www.infopathdev.com:443/forums/thread/68638.aspx</link><pubDate>Fri, 22 Jul 2011 15:53:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:68638</guid><dc:creator>ameros56</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/68638.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=68638</wfw:commentRss><description>&lt;p&gt;I really hope someone can help me with a solution to the following.&lt;/p&gt;
&lt;p&gt;I need to run a query on an access data base that will return the number of dulplicate entries.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;The data base is set up like this&lt;/p&gt;
&lt;p&gt;Occupation Title&lt;/p&gt;
&lt;p&gt;Teacher&lt;/p&gt;
&lt;p&gt;Teacher&lt;/p&gt;
&lt;p&gt;Teacher&lt;/p&gt;
&lt;p&gt;Coach &lt;/p&gt;
&lt;p&gt;Coach&lt;/p&gt;
&lt;p&gt;Mentor&lt;/p&gt;
&lt;p&gt;&amp;quot;Occupation Title&amp;quot; is the label and &amp;quot;Teacher, Coach and Mentor&amp;quot; are entries.&amp;nbsp; I need to run a query that will return all&amp;nbsp;of the Titles&amp;nbsp;only and a count of occurances,&lt;/p&gt;
&lt;p&gt;Like this:&lt;/p&gt;
&lt;p&gt;Teacher 3&lt;/p&gt;
&lt;p&gt;Coach 2&lt;/p&gt;
&lt;p&gt;Mentor 1&lt;/p&gt;
&lt;p&gt;I was able to exlude the duplicates in a repeating table but the number of entries is always 1.&amp;nbsp; I am using expression boxes with filters and rules but I cant figure out how to make infopath count the number of times the entries appear in the respective column. &lt;/p&gt;
&lt;p&gt;Any help would be greatly appreciated..&amp;nbsp; Thank you all.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>