<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: check for Existing record</title><link>https://www.infopathdev.com:443/forums/thread/97797.aspx</link><pubDate>Thu, 05 Jun 2014 08:25:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:97797</guid><dc:creator>donstephen</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/97797.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=97797</wfw:commentRss><description>&lt;p&gt;Hi hani232,&lt;/p&gt;
&lt;p&gt;To check&amp;nbsp;if a record exists would require you to query your data base using the ID number. Now, if your query returns an item, you could use a condition:&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Number of occurrences of (repeating group) is greater than 1&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;If the query returns an item, then it means that the item is existing. From here you can set action rules triggered by this condition. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;img src="http://s27.postimg.org/vl5ocmgib/Number.png" alt="" /&gt;&lt;br /&gt;&lt;br /&gt;As for the one year period, you could use a formula such as &lt;b&gt;substring(today(), 1, 4)&lt;/b&gt; to give you the current year. Or if you wish to be more specific, you may need to use a Modified date column and use this as a basis for comparison. You may use a formula or a condition&amp;nbsp;such as &lt;b&gt;Modified&amp;nbsp;&amp;nbsp;&amp;lt; addDays(today(), -365)&lt;/b&gt;.&lt;b&gt;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/b&gt;Let&amp;#39;s say for example that the Modified date is 2013-01-15, the addDays formula will return the date a year ago (today minus 365). If the formula is greater than the Modified date, then then rule should run, you can then&amp;nbsp;use this as your conditional basis for setting values.&lt;br /&gt;&lt;br /&gt;I hope this makes sense.&lt;br /&gt;&lt;br /&gt;Regards,&lt;/p&gt;</description></item><item><title>check for Existing record</title><link>https://www.infopathdev.com:443/forums/thread/97733.aspx</link><pubDate>Sat, 31 May 2014 20:26:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:97733</guid><dc:creator>hani232</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/97733.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=97733</wfw:commentRss><description>hello I&amp;#39;m new to Infopath VSTA, and I have this scenario,

I have an Infopath 2010 filler form that is connected to MS Access 2010 database.

I need to check when user entering a new request in the form, the combination of

the ID number and with some of the request types can&amp;#39;t be repeated in one year period,,

I really appreciate your help,,</description></item></channel></rss>