<?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: submit button unable to write into database table</title><link>https://www.infopathdev.com:443/forums/thread/56201.aspx</link><pubDate>Fri, 25 Jun 2010 08:48:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:56201</guid><dc:creator>larryp7639</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/56201.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=56201</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/infopathdev/images/icon-quote.gif"&gt; &lt;strong&gt;Hilary Stoupa:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;/p&gt;&lt;p&gt;Hello:&lt;/p&gt;
&lt;p&gt;No, I don&amp;#39;t think anything you are doing will require code. First, let&amp;#39;s add that field.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;div&gt;Change your task pane to display the Data Source task pane&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Select the main data source&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Right click the root folder (probably &lt;b&gt;myFields&lt;/b&gt;)&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Select &lt;b&gt;Add&lt;/b&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Name the field isSubmitted (or another name, if you like)&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Change the &lt;b&gt;Data type&lt;/b&gt;&amp;nbsp; to &lt;b&gt;True/false (boolean)&lt;/b&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Select OK&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;Now you have another field that you can use to know whether the form has been submitted. Next, let&amp;#39;s set some rules.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;div&gt;Right click the button you are using for submitting&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Change the &lt;b&gt;Action&lt;/b&gt; to &lt;b&gt;Submit&lt;/b&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Select the &lt;b&gt;Submit Options&lt;/b&gt; button&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Select &lt;b&gt;Perform custom action using Rules&lt;/b&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Select the &lt;b&gt;Rules&lt;/b&gt; button&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Select the &lt;b&gt;Add&lt;/b&gt; button&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Give your Rule a meaningful name, like &amp;quot;Submit to database&amp;quot;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Select &lt;b&gt;Add Action ...&lt;/b&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Change the action to &lt;b&gt;Submit using a data connection&lt;/b&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Make sure the data connection is your main data connection&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Select &lt;b&gt;OK&lt;/b&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Select &lt;b&gt;OK&lt;/b&gt;&amp;nbsp; again&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;This will set up the submission to the database. Next, we&amp;#39;ll set a rule to set the value of isSubmitted.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;div&gt;Select the &lt;b&gt;Add &lt;/b&gt;button again to add another rule&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Give your rule a meaningful name, like &amp;quot;Set isSubmitted&amp;quot;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Select &lt;b&gt;Add Action ...&lt;/b&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Change the action to &lt;b&gt;Set a field&amp;#39;s value&lt;/b&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Select your isSubmitted field in the field area&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Type the word &lt;b&gt;true&lt;/b&gt; in the value area&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Select &lt;b&gt;OK&lt;/b&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Select &lt;b&gt;OK&lt;/b&gt; again&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;Finally, we add the rule for email submission. All of these actions could have been added to a single rule, but sometimes when you are new, it is easier to only have a single action in every rule. That way if something doesn&amp;#39;t work the way you anticipate, you can deselect different rules to track down the problem. So, to submit our form to email:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;div&gt;Select the &lt;b&gt;Add&lt;/b&gt; button again to add another rule&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Give your rule a meaningful name, like &amp;quot;Send email&amp;quot;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Select &lt;b&gt;Add Action ...&lt;/b&gt;&lt;/div&gt;&lt;/li&gt;
&lt;div&gt;
&lt;li&gt;
&lt;div&gt;Change the action to &lt;b&gt;Submit using a data connection&lt;/b&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Make sure the data connection is your email submit connection&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Select &lt;b&gt;OK&lt;/b&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Select &lt;b&gt;OK&lt;/b&gt;&amp;nbsp; again, and once more to close that window&lt;/div&gt;&lt;/li&gt;&lt;/div&gt;&lt;/ol&gt;
&lt;p&gt;For the grand finale, we&amp;#39;ll set that conditional formatting on the button. &lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;In the Button Properties, select the &lt;b&gt;Display&lt;/b&gt; tab&lt;/li&gt;
&lt;li&gt;Select the &lt;b&gt;Conditional Formatting&lt;/b&gt;&amp;nbsp; button&lt;/li&gt;
&lt;li&gt;Select the &lt;b&gt;Add &lt;/b&gt;button&lt;/li&gt;
&lt;li&gt;In the first dropdown, select your isSubmitted field&lt;/li&gt;
&lt;li&gt;The second dropdown should say &amp;quot;Is equal to&amp;quot;&lt;/li&gt;
&lt;li&gt;In the third dropdown, select &lt;b&gt;Type text&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;Type in &lt;b&gt;true&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;Select the &lt;b&gt;Hide this control&lt;/b&gt; checkbox&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks you for the post.&amp;nbsp; &lt;/p&gt;&lt;p&gt;__________________&lt;br /&gt;&lt;a href="http://moviesonlinefree.biz" target="_blank" title="http://moviesonlinefree.biz"&gt; Watch Grown Ups Online Free&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: submit button unable to write into database table</title><link>https://www.infopathdev.com:443/forums/thread/56014.aspx</link><pubDate>Fri, 18 Jun 2010 19:25:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:56014</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/56014.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=56014</wfw:commentRss><description>&lt;p&gt;A lot depends on how your form is set up. When you create a new blank form off a database, there will be a few buttons added to the blank form with some guidance text to help you get started. New Record will clear your fields bound to the datafields group in your main data source, so that you can fill them out and then use the Submit command to submit to the DB. &lt;a href="http://office.microsoft.com/en-ca/infopath-help/design-a-form-template-based-on-a-microsoft-sql-server-database-HP010086639.aspx"&gt;Here&amp;#39;s&lt;/a&gt; a link to a Microsoft Office online article that may help you.&lt;/p&gt;</description></item><item><title>Re: submit button unable to write into database table</title><link>https://www.infopathdev.com:443/forums/thread/56012.aspx</link><pubDate>Fri, 18 Jun 2010 17:55:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:56012</guid><dc:creator>David Wipf</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/56012.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=56012</wfw:commentRss><description>&lt;p&gt;I just changed the button from &amp;quot;Submit&amp;quot; to &amp;quot;New Record&amp;quot;. there is noplace to hookup a db connection.&lt;/p&gt;
&lt;p&gt;I hit the button and it does nothing, does not complain, does nto say anything. &lt;/p&gt;
&lt;p&gt;And does not put the record into the DB.&lt;/p&gt;</description></item><item><title>Re: submit button unable to write into database table</title><link>https://www.infopathdev.com:443/forums/thread/56011.aspx</link><pubDate>Fri, 18 Jun 2010 17:46:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:56011</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/56011.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=56011</wfw:commentRss><description>&lt;p&gt;What happens if you try using the &amp;quot;new record&amp;quot; feature built into IP? That is, add a button that has the action of &amp;quot;new record&amp;quot;?&lt;/p&gt;</description></item><item><title>Re: submit button unable to write into database table</title><link>https://www.infopathdev.com:443/forums/thread/56010.aspx</link><pubDate>Fri, 18 Jun 2010 17:36:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:56010</guid><dc:creator>David Wipf</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/56010.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=56010</wfw:commentRss><description>&lt;p&gt;I have a table with 3 fields, every record in the DB should be unique, thus the 3 part primary key.&lt;/p&gt;
&lt;p&gt;I want the InfoPath form to allow the user to enter new records into the table.&lt;/p&gt;
&lt;p&gt;So they type in the 3 fields and hit the submit button.&lt;/p&gt;
&lt;p&gt;If the record already exists it should say so and not put the duplicate record into the DB.&lt;/p&gt;
&lt;p&gt;If the record does not exist it should add it to the table in the DB.&lt;/p&gt;
&lt;p&gt;No matter how I set it up InfoPath thinks the record already exists even though it does not.&lt;/p&gt;</description></item><item><title>Re: submit button unable to write into database table</title><link>https://www.infopathdev.com:443/forums/thread/56009.aspx</link><pubDate>Fri, 18 Jun 2010 17:21:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:56009</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/56009.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=56009</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m a little bit confused, I&amp;#39;m afraid. What are you trying to do? Create a new record by modifying the key of an existing record?&lt;/p&gt;</description></item><item><title>Re: submit button unable to write into database table</title><link>https://www.infopathdev.com:443/forums/thread/56007.aspx</link><pubDate>Fri, 18 Jun 2010 16:52:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:56007</guid><dc:creator>David Wipf</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/56007.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=56007</wfw:commentRss><description>&lt;p&gt;Hi Hilary,&lt;/p&gt;
&lt;p&gt;Looks like there are 2 ways it should work. they way you list above and there is also an option under &amp;quot;Send for data to a single destination&amp;quot; of Database.&lt;/p&gt;
&lt;p&gt;but neither of the 2 methods really work. no mater what I type into my 3 fields that are part of my 3 part primary key InfoPath thinks the record already exists even though it does not.&lt;/p&gt;
&lt;p&gt;Does InfoPath have a multi-part primary key bug?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;David Wipf&lt;/p&gt;</description></item><item><title>Re: submit button unable to write into database table</title><link>https://www.infopathdev.com:443/forums/thread/56005.aspx</link><pubDate>Fri, 18 Jun 2010 16:28:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:56005</guid><dc:creator>David Wipf</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/56005.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=56005</wfw:commentRss><description>&lt;p&gt;Ok I am getting somewhere. I added a primary key of 3 fields. I was able to enable submit. when I put a record in with the exact 3 fields that already exist in the db it works as expected - it does not let me put in a dup record.&lt;/p&gt;
&lt;p&gt;But when I change the last of the 3 fields to be different - so now the primary 3 part key is unique - it still tells me that there is nothing to put in the db because it already exists even though it does not.&lt;/p&gt;
&lt;p&gt;Any ideas?&lt;/p&gt;
&lt;p&gt;thanks&lt;/p&gt;</description></item><item><title>Re: submit button unable to write into database table</title><link>https://www.infopathdev.com:443/forums/thread/56004.aspx</link><pubDate>Fri, 18 Jun 2010 16:11:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:56004</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/56004.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=56004</wfw:commentRss><description>&lt;p&gt;If you walk through your main data connection again, there will be a message in the last window of the wizard as to why you can&amp;#39;t enable submit. It may be your table(s) have a data type that InfoPath doesn&amp;#39;t care for, or no primary key ... So under Data Connections, select your main data connection and select Modify, and walk through the wizard again.&lt;/p&gt;</description></item><item><title>Re: submit button unable to write into database table</title><link>https://www.infopathdev.com:443/forums/thread/56003.aspx</link><pubDate>Fri, 18 Jun 2010 16:08:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:56003</guid><dc:creator>David Wipf</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/56003.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=56003</wfw:commentRss><description>&lt;span style="FONT-FAMILY:&amp;#39;Calibri&amp;#39;,&amp;#39;sans-serif&amp;#39;;COLOR:#1f497d;FONT-SIZE:11pt;"&gt;The form is designed off the database – at least it reads the data from the DB and displays the data on the form, but I cannot get it to submit to the DB. How do I do that?&lt;/span&gt;</description></item><item><title>Re: submit button unable to write into database table</title><link>https://www.infopathdev.com:443/forums/thread/56002.aspx</link><pubDate>Fri, 18 Jun 2010 16:01:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:56002</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/56002.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=56002</wfw:commentRss><description>&lt;p&gt;Hi, David:&lt;/p&gt;
&lt;p&gt;These steps were written out with the intent that form will have been designed off the database, in order to use InfoPath&amp;#39;s built in submit to SQL or Access functionality. InfoPath does not provide the option to submit to database otherwise, I&amp;#39;m afraid.&lt;/p&gt;</description></item><item><title>Re: submit button unable to write into database table</title><link>https://www.infopathdev.com:443/forums/thread/56001.aspx</link><pubDate>Fri, 18 Jun 2010 15:35:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:56001</guid><dc:creator>David Wipf</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/56001.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=56001</wfw:commentRss><description>&lt;p&gt;Hi Hilary,&lt;/p&gt;
&lt;p&gt;in you second set of steps, step 10 says: Make sure the data connection is your main data connection.&lt;/p&gt;
&lt;p&gt;How do I do that? how do I set up a main data connection to write data to my SQL Server 2008 DB?&lt;/p&gt;
&lt;p&gt;The choices I am given when I try to set one up in the data connection wizard under &amp;quot;How do you want to submit your data?&amp;quot; are:&lt;/p&gt;
&lt;p&gt;To a Web service&lt;/p&gt;
&lt;p&gt;To a document library on a SharePoint site&lt;/p&gt;
&lt;p&gt;As an e-mail message&lt;/p&gt;
&lt;p&gt;To the hosting environment, such as an ASP.NET page or hosting application&lt;/p&gt;
&lt;p&gt;Well none of them sound correct, I tried the last one and there was no place to setup DB connection information. Do I need to write a web service that will handle the handshake of data to my SQL Server 2008 DB? Sounds combersome, why is it not built into InfoPath?&lt;/p&gt;
&lt;p&gt;What am I doing wrong?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: submit button unable to write into database table</title><link>https://www.infopathdev.com:443/forums/thread/30336.aspx</link><pubDate>Fri, 11 Jul 2008 14:41:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:30336</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/30336.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=30336</wfw:commentRss><description>&lt;p&gt;Hello:&lt;/p&gt;
&lt;p&gt;No, I don&amp;#39;t think anything you are doing will require code. First, let&amp;#39;s add that field.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;div&gt;Change your task pane to display the Data Source task pane&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Select the main data source&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Right click the root folder (probably &lt;strong&gt;myFields&lt;/strong&gt;)&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Select &lt;strong&gt;Add&lt;/strong&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Name the field isSubmitted (or another name, if you like)&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Change the &lt;strong&gt;Data type&lt;/strong&gt;&amp;nbsp; to &lt;strong&gt;True/false (boolean)&lt;/strong&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Select OK&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;Now you have another field that you can use to know whether the form has been submitted. Next, let&amp;#39;s set some rules.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;div&gt;Right click the button you are using for submitting&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Change the &lt;strong&gt;Action&lt;/strong&gt; to &lt;strong&gt;Submit&lt;/strong&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Select the &lt;strong&gt;Submit Options&lt;/strong&gt; button&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Select &lt;strong&gt;Perform custom action using Rules&lt;/strong&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Select the &lt;strong&gt;Rules&lt;/strong&gt; button&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Select the &lt;strong&gt;Add&lt;/strong&gt; button&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Give your Rule a meaningful name, like &amp;quot;Submit to database&amp;quot;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Select &lt;strong&gt;Add Action ...&lt;/strong&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Change the action to &lt;strong&gt;Submit using a data connection&lt;/strong&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Make sure the data connection is your main data connection&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Select &lt;strong&gt;OK&lt;/strong&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Select &lt;strong&gt;OK&lt;/strong&gt;&amp;nbsp; again&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;This will set up the submission to the database. Next, we&amp;#39;ll set a rule to set the value of isSubmitted.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;div&gt;Select the &lt;strong&gt;Add &lt;/strong&gt;button again to add another rule&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Give your rule a meaningful name, like &amp;quot;Set isSubmitted&amp;quot;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Select &lt;strong&gt;Add Action ...&lt;/strong&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Change the action to &lt;strong&gt;Set a field&amp;#39;s value&lt;/strong&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Select your isSubmitted field in the field area&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Type the word &lt;strong&gt;true&lt;/strong&gt; in the value area&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Select &lt;strong&gt;OK&lt;/strong&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Select &lt;strong&gt;OK&lt;/strong&gt; again&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;Finally, we add the rule for email submission. All of these actions could have been added to a single rule, but sometimes when you are new, it is easier to only have a single action in every rule. That way if something doesn&amp;#39;t work the way you anticipate, you can deselect different rules to track down the problem. So, to submit our form to email:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;div&gt;Select the &lt;strong&gt;Add&lt;/strong&gt; button again to add another rule&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Give your rule a meaningful name, like &amp;quot;Send email&amp;quot;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Select &lt;strong&gt;Add Action ...&lt;/strong&gt;&lt;/div&gt;&lt;/li&gt;
&lt;div&gt;
&lt;li&gt;
&lt;div&gt;Change the action to &lt;strong&gt;Submit using a data connection&lt;/strong&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Make sure the data connection is your email submit connection&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Select &lt;strong&gt;OK&lt;/strong&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Select &lt;strong&gt;OK&lt;/strong&gt;&amp;nbsp; again, and once more to close that window&lt;/div&gt;&lt;/li&gt;&lt;/div&gt;&lt;/ol&gt;
&lt;p&gt;For the grand finale, we&amp;#39;ll set that conditional formatting on the button. &lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;In the Button Properties, select the &lt;strong&gt;Display&lt;/strong&gt; tab&lt;/li&gt;
&lt;li&gt;Select the &lt;strong&gt;Conditional Formatting&lt;/strong&gt;&amp;nbsp; button&lt;/li&gt;
&lt;li&gt;Select the &lt;strong&gt;Add &lt;/strong&gt;button&lt;/li&gt;
&lt;li&gt;In the first dropdown, select your isSubmitted field&lt;/li&gt;
&lt;li&gt;The second dropdown should say &amp;quot;Is equal to&amp;quot;&lt;/li&gt;
&lt;li&gt;In the third dropdown, select &lt;strong&gt;Type text&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Type in &lt;strong&gt;true&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Select the &lt;strong&gt;Hide this control&lt;/strong&gt; checkbox&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: submit button unable to write into database table</title><link>https://www.infopathdev.com:443/forums/thread/30324.aspx</link><pubDate>Fri, 11 Jul 2008 08:09:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:30324</guid><dc:creator>w2ngme</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/30324.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=30324</wfw:commentRss><description>&lt;p&gt;Thanks for the quick reply.&lt;/p&gt;
&lt;p&gt;Sorry I&amp;#39;m not very good at this. Do mean&lt;/p&gt;
&lt;p&gt;Problem 1: At the button properties i change the action to&amp;nbsp;new record?&amp;nbsp;&amp;nbsp;I have only one&amp;nbsp;button label as submit. When it&amp;#39;s click it will write to the database and also send a copy of the form to the user as comfirmation. &lt;/p&gt;
&lt;p&gt;Problem 2: issubmitted an extra field in my DB&amp;nbsp;OR a field i should declare in the function submit::OnClick(eventObj)?!? where would i fid this hide&lt;/p&gt;
&lt;p&gt;Am not to good at coding. any refrence.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;</description></item><item><title>Re: submit button unable to write into database table</title><link>https://www.infopathdev.com:443/forums/thread/30313.aspx</link><pubDate>Fri, 11 Jul 2008 04:03:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:30313</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/30313.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=30313</wfw:commentRss><description>&lt;p&gt;Hello and welcome!&lt;/p&gt;
&lt;p&gt;For problem 1, in order to submit to Access, you need to have based the form off the database when you initially designed it. If you did that, and the controls on the form are bound to the fields in the datafields group in the main data source, you should be able to submit to your table, which will add new records.&lt;/p&gt;
&lt;p&gt;For problem 2, you can add another field, a Boolean, called isSubmitted. You can add a rule to your submit button to set isSubmitted to true when the button is clicked. You can set conditional formatting on your button to hide if if isSubmitted is true. InfoPath 2007 has the option when you set up email submit to either attach the form or just include the contents, but I don&amp;#39;t recall if that was available in 2003.&lt;/p&gt;
&lt;p&gt;Hope this helps, if it isn&amp;#39;t clear enough or you need further help, let me know, okay?&lt;/p&gt;</description></item></channel></rss>