<?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>SQL Database Integration</title><link>https://www.infopathdev.com:443/forums/47.aspx</link><description>For questions concerning issues in the integration of SQL and Microsoft InfoPath.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Write code to programmatically open   Access</title><link>https://www.infopathdev.com:443/forums/thread/17084.aspx</link><pubDate>Tue, 29 Nov 2005 07:28:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17084</guid><dc:creator>Shyam</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17084.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=17084</wfw:commentRss><description>Hi Kip,&lt;br /&gt;&lt;br /&gt;You would need to make your InfoPath form "Full Trust", to be able to use Access DB from code.(Full Trust is not required if you make the "Access DB" connection into a main data connection).&lt;br /&gt;&lt;br /&gt;Have you tried this ? Let me know, i can send you some sample form/code, if you are still having issues.&lt;br /&gt;&lt;br /&gt;thanks&lt;br /&gt;&lt;br /&gt;Shyam&lt;br /&gt;InfoPath Dev&lt;br /&gt;India</description></item><item><title>Re: Write code to programmatically open   Access</title><link>https://www.infopathdev.com:443/forums/thread/17083.aspx</link><pubDate>Mon, 28 Nov 2005 22:47:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17083</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17083.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=17083</wfw:commentRss><description>Hi Kip,&lt;br /&gt;Sorry for the long delay. I'll ask our Access experts to answer this post.&lt;br /&gt;&lt;br /&gt;Patrick Halstead [InfoPath MVP]&lt;br /&gt;InfoPathDev</description></item><item><title>Re: Write code to programmatically open   Access</title><link>https://www.infopathdev.com:443/forums/thread/17082.aspx</link><pubDate>Fri, 18 Nov 2005 14:45:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17082</guid><dc:creator>kipkaylor</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17082.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=17082</wfw:commentRss><description>I tried creating a new db on my local drive and a new InfopathProject in the same Visual studio folder. Got the same error. Can't understand why it fails when I try incorporating the Infopath template? &lt;br /&gt;&lt;br /&gt;</description></item><item><title>Re: Write code to programmatically open   Access</title><link>https://www.infopathdev.com:443/forums/thread/17081.aspx</link><pubDate>Thu, 17 Nov 2005 23:59:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17081</guid><dc:creator>franck</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17081.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=17081</wfw:commentRss><description>If your DB doesn't have the default security settings, it would.  Access security has nothing to do with your permissions on the machine, right?  Did you try to create that empty DB on your machine, just to make sure.&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;&lt;br /&gt;Franck Dauché&lt;br /&gt;InfoPathDev</description></item><item><title>Re: Write code to programmatically open   Access</title><link>https://www.infopathdev.com:443/forums/thread/17080.aspx</link><pubDate>Thu, 17 Nov 2005 22:20:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17080</guid><dc:creator>kipkaylor</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17080.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=17080</wfw:commentRss><description>I have admin rights on my machine. Don't understand where it would affect anything???</description></item><item><title>Re: Write code to programmatically open   Access</title><link>https://www.infopathdev.com:443/forums/thread/17079.aspx</link><pubDate>Thu, 17 Nov 2005 21:50:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17079</guid><dc:creator>franck</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17079.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=17079</wfw:commentRss><description>OK, did you try with a new fresh simple Access 2003 DB (no password).&lt;br /&gt;It looks like the error message changed: Security.SecurityException.&lt;br /&gt;I bet everything is now OK, but your connection string doesn't work because you need to add info to open the GA10605 DB.  User may not be Admin, pwd may have been set, etc.&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;&lt;br /&gt;Franck Dauché&lt;br /&gt;InfoPathDev</description></item><item><title>Re: Write code to programmatically open   Access</title><link>https://www.infopathdev.com:443/forums/thread/17078.aspx</link><pubDate>Thu, 17 Nov 2005 15:15:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17078</guid><dc:creator>kipkaylor</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17078.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=17078</wfw:commentRss><description>I tried again with a fresh template and got the same error. It says system.security exception at the top of the error. Could this be a security setting in the options? I am running access 03 as well.&lt;br /&gt;&lt;br /&gt;error:&lt;br /&gt;System.Security.SecurityException&lt;br /&gt;Request failed.&lt;br /&gt;   at InfoPathProject4.InfoPathProject4.btnOne_OnClick(DocActionEvent e)&lt;br /&gt;   at Microsoft.Office.Interop.InfoPath.SemiTrust._ButtonEventSink_SinkHelper.OnClick(DocActionEvent pEvent)&lt;br /&gt;</description></item><item><title>Re: Write code to programmatically open   Access</title><link>https://www.infopathdev.com:443/forums/thread/17077.aspx</link><pubDate>Thu, 17 Nov 2005 14:56:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17077</guid><dc:creator>kipkaylor</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17077.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=17077</wfw:commentRss><description>I thought I did that , but I'll try try again, Thanks for the instruction and confirmation!</description></item><item><title>Re: Write code to programmatically open   Access</title><link>https://www.infopathdev.com:443/forums/thread/17076.aspx</link><pubDate>Thu, 17 Nov 2005 14:49:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17076</guid><dc:creator>franck</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17076.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=17076</wfw:commentRss><description>Hi Kelly,&lt;br /&gt;&lt;br /&gt;You open a new VB.Net project, you add a reference to System.Data.  You drop 1 button and the form and write the code that you posted, with the connection string on 1 single line.  You run and it works.&lt;br /&gt;If you did that and are still experiencing issues, the only difference between your code and mine would be the database (an Access 2003 DB in my case).&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;&lt;br /&gt;Franck Dauché&lt;br /&gt;InfoPathDev</description></item><item><title>Re: Write code to programmatically open   Access</title><link>https://www.infopathdev.com:443/forums/thread/17075.aspx</link><pubDate>Thu, 17 Nov 2005 14:18:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17075</guid><dc:creator>kipkaylor</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17075.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=17075</wfw:commentRss><description>Let me ask you one question. Do I need to have a main connection thru the Infopath GUI Wizard before attempting to use this code? &lt;br /&gt;Logically , I would say this code would make the connection. Is that correct?  &lt;br /&gt;I need to  view, submit navagate , and add records . The only way I know how to do that is thru coding command btns in vb.net. &lt;br /&gt;Maybe I'll try a fresh infopath project and see what I can come up with.&lt;br /&gt;&lt;br /&gt;Could you send me a high level overview on how you got yours working. General steps. I can fill in the blanks, thanks!</description></item><item><title>Re: Write code to programmatically open   Access</title><link>https://www.infopathdev.com:443/forums/thread/17074.aspx</link><pubDate>Thu, 17 Nov 2005 07:12:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17074</guid><dc:creator>franck</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17074.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=17074</wfw:commentRss><description>nope, I don't think backslashes are required....I actually tested the code myself on a VB-based project, and it works fine.  That's why I think that Kelly may have an issue with the db itself.&lt;br /&gt;&lt;br /&gt;Franck</description></item><item><title>Re: Write code to programmatically open   Access</title><link>https://www.infopathdev.com:443/forums/thread/17073.aspx</link><pubDate>Thu, 17 Nov 2005 07:02:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17073</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17073.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=17073</wfw:commentRss><description>Are escaped backslashes required for database connection strings?&lt;br /&gt;&lt;br /&gt;Patrick Halstead [InfoPath MVP]&lt;br /&gt;InfoPathDev</description></item><item><title>Re: Write code to programmatically open   Access</title><link>https://www.infopathdev.com:443/forums/thread/17072.aspx</link><pubDate>Thu, 17 Nov 2005 05:13:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17072</guid><dc:creator>franck</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17072.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=17072</wfw:commentRss><description>- You can open your mdb manually, right?  It is not corrupted?&lt;br /&gt;- You have your reference to System.Data?&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;&lt;br /&gt;Franck Dauché&lt;br /&gt;InfoPathDev</description></item><item><title>Re: Write code to programmatically open   Access</title><link>https://www.infopathdev.com:443/forums/thread/17071.aspx</link><pubDate>Thu, 17 Nov 2005 02:44:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17071</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17071.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=17071</wfw:commentRss><description>Did you escape the \ character? You probably need to have something like C:\\GA10605.mdb or something like that.&lt;br /&gt;&lt;br /&gt;Patrick Halstead [InfoPath MVP]&lt;br /&gt;InfoPathDev</description></item><item><title>Re: Write code to programmatically open   Access</title><link>https://www.infopathdev.com:443/forums/thread/17070.aspx</link><pubDate>Wed, 16 Nov 2005 15:11:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17070</guid><dc:creator>kipkaylor</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17070.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=17070</wfw:commentRss><description>Still doesn't work. Here's the error:&lt;br /&gt;&lt;br /&gt;Request failed.&lt;br /&gt;   at InfoPathProject3.InfoPathProject3.Button1_OnClick(DocActionEvent e)&lt;br /&gt;   at Microsoft.Office.Interop.InfoPath.SemiTrust._ButtonEventSink_SinkHelper.OnClick(DocActionEvent pEvent)&lt;br /&gt;</description></item></channel></rss>