<?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>Controls</title><link>https://www.infopathdev.com:443/forums/43.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Counting # of records in MDB file with Infopath</title><link>https://www.infopathdev.com:443/forums/thread/19087.aspx</link><pubDate>Mon, 16 Apr 2007 03:48:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:19087</guid><dc:creator>Shiraz Cupala</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/19087.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=19087</wfw:commentRss><description>One way to do this would be to query the DB for all the students, then set a condition on your submit or elsewhere that if the number of students for a given teacher is 25 then fail the submit and display a dialog instead. You can do this by using rules on a button. First rule&amp;nbsp;would check the condition and display error dialog as needed then stop processing rules. Second rule with do the submit. This method I&amp;#39;m describing would allow you to achieve what you want without any code. The condition you have to write is a little complex (with filtering and count logic) but should be possible using the condition builder UI in InfoPath.</description></item><item><title>Counting # of records in MDB file with Infopath</title><link>https://www.infopathdev.com:443/forums/thread/11783.aspx</link><pubDate>Fri, 13 Apr 2007 17:37:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:11783</guid><dc:creator>yockey_d</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/11783.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=11783</wfw:commentRss><description>If anyone could help me on this issue it would be greatley appreciated?&lt;br /&gt;&lt;br /&gt;I have a database setup in Microsoft Access that contains a table of student data.  Right now it will be used to track a associated "Assigned Teacher" field.&lt;br /&gt;&lt;br /&gt;I currentely have my XSN file setup to pull the list of teachers names on a drop down list box (Assigned Teacher field).  &lt;br /&gt;&lt;br /&gt;Is their a way to have Infopath display an error message when a certain number (25) of students have been submitted to the database and not let anymore students be entered for the specified teacher but still let them select another teacher from the list that does not have 25 students yet?&lt;br /&gt;&lt;br /&gt;I have been working on this one for a while but have not come up with a good solution at this point?</description></item></channel></rss>