<?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: Check for a duplicate record prior to submit</title><link>https://www.infopathdev.com:443/forums/thread/43755.aspx</link><pubDate>Thu, 02 Jul 2009 18:24:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:43755</guid><dc:creator>RhysAZ</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/43755.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=43755</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;&lt;/p&gt;Thank you both. I&amp;#39;ll give it a try. And yes, I&amp;#39;ve set up my main connection via the database as submit and receive.</description></item><item><title>Re: Check for a duplicate record prior to submit</title><link>https://www.infopathdev.com:443/forums/thread/43710.aspx</link><pubDate>Thu, 02 Jul 2009 05:30:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:43710</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/43710.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=43710</wfw:commentRss><description>&lt;p&gt;Clayton&amp;#39;s post is correct. You need to add a receive connection on load. Check to see if a record with the date has already been added and if so, maybe disable the submit button and conditionally display some red guidance text telling them that they have already submitted (use conditional formatting to display that).&lt;/p&gt;
&lt;p&gt;However, this won&amp;#39;t work if your form doesn&amp;#39;t close on submit. If users keep the form open, please add a rule that disables submit after they submit once. To do that, add a field to your form to track submits (main data source, or for extra credit you can add as a secondary data source). &lt;/p&gt;
&lt;p&gt;Even so, users may still be upset because they may mistakenly submit before they meant to. I recommend warning them in both cases and just saying &amp;quot;You already submitted once today. The next time you submit, e-mail will be sent to the support alias. Please enter your justification here: ...&amp;quot; and provide a text box. That allows the user to submit again if they have second thoughts and the second submit should e-mail some distribution list with the justification. Then, you can refer to that if there is an issue. This way, you reduce your support costs.&lt;/p&gt;
&lt;p&gt;:)&lt;/p&gt;</description></item><item><title>Re: Check for a duplicate record prior to submit</title><link>https://www.infopathdev.com:443/forums/thread/43700.aspx</link><pubDate>Wed, 01 Jul 2009 22:47:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:43700</guid><dc:creator>warrtalon</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/43700.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=43700</wfw:commentRss><description>&lt;p&gt;Make sure your data connection to the DB can also receive (it already can if you create the form using the DB schema).&amp;nbsp; Retrieve that column and see if any occurrence of that field contains today&amp;#39;s date.&lt;/p&gt;</description></item><item><title>Check for a duplicate record prior to submit</title><link>https://www.infopathdev.com:443/forums/thread/43698.aspx</link><pubDate>Wed, 01 Jul 2009 22:24:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:43698</guid><dc:creator>RhysAZ</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/43698.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=43698</wfw:commentRss><description>&lt;p&gt;Hi-&lt;/p&gt;
&lt;p&gt;My users submit their daily stats via an Infopath 2003 form to my Access 2003 database. In the form, they enter their name (text box) &amp;nbsp;and the date (date picker), along with their stats for that day.&lt;/p&gt;
&lt;p&gt;Is there a way (prior to submission to the database)&amp;nbsp;to see if that user has&amp;nbsp;already entered a record for that date?&amp;nbsp;I would like to have a pop up&amp;nbsp;message box letting them know that an existing record has already been created for that date, and prevent them from entering another record with that same date.&lt;/p&gt;
&lt;p&gt;Thanks in advance,&lt;/p&gt;
&lt;p&gt;RhysAZ&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>