<?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: Check for duplicates for input data in a text field</title><link>https://www.infopathdev.com:443/forums/thread/88334.aspx</link><pubDate>Sun, 24 Mar 2013 18:54:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:88334</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/88334.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=88334</wfw:commentRss><description>&lt;p&gt;You shouldn&amp;#39;t need custom code for this. Just add a data connection that receives data from access and configure it to not load on open. Add a rule to your form&amp;#39;s username field&amp;nbsp;that sets the query field (to the same value of the unqiue key) and queries the data connection. Add a section to your form with some red static text and add a conditional formatting rule to it so that it only shows up if the value from the secondary data connection (the query) is not blank. &lt;/p&gt;&lt;p&gt;&amp;nbsp;Should be relatively simple.&lt;/p&gt;</description></item><item><title>Check for duplicates for input data in a text field</title><link>https://www.infopathdev.com:443/forums/thread/88329.aspx</link><pubDate>Sat, 23 Mar 2013 20:00:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:88329</guid><dc:creator>gunjanmarwaha</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/88329.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=88329</wfw:commentRss><description>Hi Everyone,

I have recently taken up a time critical project that requires me to use Infopath and MS Access. I have a few queries which I will post over the next coupe of days.

For the first query, I have already spent some time looking up the existing treads but could not find a relevant solution. Following are the details for my first query:

I am working on a user registration form that has a few typical fields to record user details. One of these is Email (Cannot set it as the only primary key in the database table and setting two primary keys is not helping)

I want the form to check if the value entered by the user is already in the database (Tablename: User_info, Field Name: Email). In case it is available, I need to make the form give out a prompt.

I have read else were that it is feasible with a custom code but I am having a hard time understanding them (I am just a tab familiar with VB). If custom code is the only option, I will really appreciate if someone can give me a sample code wit key parts highlighted (table name, database name, field name, etc.).

Thanks in anticipation!!

MS Infopath 2007
MS Access</description></item></channel></rss>