<?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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Avoiding duplicate entries</title><link>https://www.infopathdev.com:443/forums/thread/25069.aspx</link><pubDate>Tue, 11 Dec 2007 22:51:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:25069</guid><dc:creator>Postman Pat</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/25069.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=25069</wfw:commentRss><description>&lt;p&gt;Thanks, but would it be possible for you to provide me with the jscript for the actual new record button, so that I can add some conditions to it programatically, i&amp;#39;m using infopath 2003 and i am unable to include &amp;quot;actions&amp;quot; on the new record button ... the button has to check for duplicates and then run some script based on the result.&lt;/p&gt;</description></item><item><title>Re: Avoiding duplicate entries</title><link>https://www.infopathdev.com:443/forums/thread/24915.aspx</link><pubDate>Wed, 05 Dec 2007 13:10:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:24915</guid><dc:creator>nukkumatti</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/24915.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=24915</wfw:commentRss><description>My first thought is that the easiest thing to do would be to set the column which contains the value you want to perform your check againt as the primary key in you DB table. If you then have an Infopath template created from your database you shouldn&amp;#39;t be able to insert a new row. If you have your database connection as the secondary data source the approach should be the same having a key value in your table but then you need to write the queries and inserts by yourself. Hope this helps.</description></item><item><title>Avoiding duplicate entries</title><link>https://www.infopathdev.com:443/forums/thread/24874.aspx</link><pubDate>Mon, 03 Dec 2007 23:12:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:24874</guid><dc:creator>Postman Pat</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/24874.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=24874</wfw:commentRss><description>&lt;p&gt;HI,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have&amp;nbsp;a form with a Ms Access connection which I submit and query to. I would like to however create a new record button which queries the database for an existing record before creating a new record using a field value entered by the user.&amp;nbsp;If the value is already present in the same field in the database then the user should be denied from creating a new record. This is basically an effort to prevent duplicates.&amp;nbsp;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>