<?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: SQL query: "is equal to" does not work.</title><link>https://www.infopathdev.com:443/forums/thread/45908.aspx</link><pubDate>Sat, 15 Aug 2009 16:07:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:45908</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/45908.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=45908</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;contains(., &amp;quot;SF215FMT-05&amp;quot;) should not be true unless @DROPID contains the &lt;i&gt;entire&lt;/i&gt; string &amp;quot;SF215FMT-05,&amp;quot; so the behavior you describe is not expected.&amp;nbsp; The first formula you described should also work if @DROPID is exactly &amp;quot;SF215FMT-05&amp;quot;.&amp;nbsp; Have you tried displaying @DROPID in your form and making sure it has the values you think it does?&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;One other thing you might try is displaying the d:ROUTELOG fields in a repeating table or section (if you&amp;#39;re not already), and adding two expression boxes with the formulas @DROPID = &amp;quot;SF215FMT-05&amp;quot; and contains(@DROPID, &amp;quot;SF215FMT-05&amp;quot;) to see where the formulas are true and where they are false. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>SQL query: "is equal to" does not work.</title><link>https://www.infopathdev.com:443/forums/thread/45882.aspx</link><pubDate>Fri, 14 Aug 2009 16:55:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:45882</guid><dc:creator>Mosel</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/45882.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=45882</wfw:commentRss><description>&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;Hello all!&lt;/font&gt;&lt;/font&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;I am trying to count the number of times an&amp;nbsp;entry is displayed in a SQL query.&lt;/font&gt;&lt;/font&gt; 
&lt;p&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;I tried using the count(d:ROUTELOG/@DROPID[. &lt;strong&gt;=&lt;/strong&gt; &amp;quot;SF215FMT-05&amp;quot;]) in an expression box but it does not seem to work. When&amp;nbsp;I try using count(d:ROUTELOG/@DROPID[contains(., &amp;quot;SF215FMT-05&amp;quot;)]) it counts the SF215FMT-05 entry but it also counts the other entries (SF215FMT-06, SF215FMT-07 and so on). &lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;How can I have IP count only the SF215FMT-05 without all the other entries counted?&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;Thank you.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>