<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Connecting a Form to a Database</title>
	<atom:link href="http://forms.stefcameron.com/2006/09/18/connecting-a-form-to-a-database/feed/" rel="self" type="application/rss+xml" />
	<link>http://forms.stefcameron.com/2006/09/18/connecting-a-form-to-a-database/</link>
	<description>Building intelligent forms using Adobe LiveCycle Designer</description>
	<lastBuildDate>Thu, 19 Jan 2012 16:32:12 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Stefan Cameron</title>
		<link>http://forms.stefcameron.com/2006/09/18/connecting-a-form-to-a-database/#comment-5753</link>
		<dc:creator>Stefan Cameron</dc:creator>
		<pubDate>Mon, 15 Nov 2010 22:51:39 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=42#comment-5753</guid>
		<description>@Bev,

When you configure the data connection, the last page in the wizard has a &quot;delayed open&quot; option. Check that box. The result will be that the connection is not opened (and the first record loaded) until you make a call to the connection&#039;s &quot;open()&quot; method, which you can do as a result of a button Click event, for example.</description>
		<content:encoded><![CDATA[<p>@Bev,</p>
<p>When you configure the data connection, the last page in the wizard has a &#8220;delayed open&#8221; option. Check that box. The result will be that the connection is not opened (and the first record loaded) until you make a call to the connection&#8217;s &#8220;open()&#8221; method, which you can do as a result of a button Click event, for example.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom</title>
		<link>http://forms.stefcameron.com/2006/09/18/connecting-a-form-to-a-database/#comment-5752</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Wed, 10 Nov 2010 21:33:05 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=42#comment-5752</guid>
		<description>Stefan,

I&#039;m afraid I must apologize, but the problem I have been having turns out to be a trivial user error!!

Recently, I updated my version of Adobe Reader and apparently it made itself the default program to open
my pdf files-- and I hadn&#039;t realized it.  So when I tested these forms, they were suddenly opening in Adobe Reader rather than Acrobat!   Hard to believe how many times I opened these files without noticing this!   Anyway, this code works fine whenever I open it with Acrobat!

I do have one more question for you, however.    I am working on another form that uses a SignatureImage
box.  When the user clicks on the box, a Windows dialog automatically opens and prompts the user to select a bitmap file to load into the SignatureImage control.  In association with this, I would like to run some validation code, which I have placed in the &quot;Click&quot; script for the SignatureImage box.
This works well as long as the user first selects a bitmap by single-clicking it and then presses the &quot;Select&quot; button on the dialog.   However after the dialog closes, the form shows some unexpected behaviors.

First, if the user double-clicks the file name (instead of single-clicking and then hitting &quot;Select&quot;), the dialog closes and loads the bitmap-- as expected-- but then the &quot;click&quot; script fails to run!

Second, if the user fails to select a file and then hits &quot;Cancel&quot;, the bitmap is not loaded into the image box (as expected)--  but then the &quot;click&quot; script runs anyway!

So we have a situation where the &quot;click&quot; script runs whether the user hits either select or cancel, but fails to run if the user double-clicks the choice (and therefore fails to hit either button).

I would like to be able to execute my script reliably when the user loaded a bitmap and cancel the script if the user cancelled the bitmap selection.   Any ideas?  For example, is there a way to obtain a return value from the Windows dialog so that I could determine whether the user successfully chose an image or canceled ?

Tom</description>
		<content:encoded><![CDATA[<p>Stefan,</p>
<p>I&#8217;m afraid I must apologize, but the problem I have been having turns out to be a trivial user error!!</p>
<p>Recently, I updated my version of Adobe Reader and apparently it made itself the default program to open<br />
my pdf files&#8211; and I hadn&#8217;t realized it.  So when I tested these forms, they were suddenly opening in Adobe Reader rather than Acrobat!   Hard to believe how many times I opened these files without noticing this!   Anyway, this code works fine whenever I open it with Acrobat!</p>
<p>I do have one more question for you, however.    I am working on another form that uses a SignatureImage<br />
box.  When the user clicks on the box, a Windows dialog automatically opens and prompts the user to select a bitmap file to load into the SignatureImage control.  In association with this, I would like to run some validation code, which I have placed in the &#8220;Click&#8221; script for the SignatureImage box.<br />
This works well as long as the user first selects a bitmap by single-clicking it and then presses the &#8220;Select&#8221; button on the dialog.   However after the dialog closes, the form shows some unexpected behaviors.</p>
<p>First, if the user double-clicks the file name (instead of single-clicking and then hitting &#8220;Select&#8221;), the dialog closes and loads the bitmap&#8211; as expected&#8211; but then the &#8220;click&#8221; script fails to run!</p>
<p>Second, if the user fails to select a file and then hits &#8220;Cancel&#8221;, the bitmap is not loaded into the image box (as expected)&#8211;  but then the &#8220;click&#8221; script runs anyway!</p>
<p>So we have a situation where the &#8220;click&#8221; script runs whether the user hits either select or cancel, but fails to run if the user double-clicks the choice (and therefore fails to hit either button).</p>
<p>I would like to be able to execute my script reliably when the user loaded a bitmap and cancel the script if the user cancelled the bitmap selection.   Any ideas?  For example, is there a way to obtain a return value from the Windows dialog so that I could determine whether the user successfully chose an image or canceled ?</p>
<p>Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom</title>
		<link>http://forms.stefcameron.com/2006/09/18/connecting-a-form-to-a-database/#comment-5751</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Wed, 10 Nov 2010 16:20:12 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=42#comment-5751</guid>
		<description>Hi Cameron,

Thanks for your reply.  Because this code exhibits such odd behavior, I decided to rule out any possible problems with my system.  So I did a complete uninstall of Adobe Pro and re-installed it.  Then I started with a new form, adding no
scripting other than the code I am having a problem with.  This version exhibits the same strange behavior as I described previously.  Here is the entire script for this program.

form1::docClose - (JavaScript, client)
   try {
      if (g_HdrConn != null) g_HdrConn.close();
      if (g_MainConn != null) g_MainConn.close();
   }
   catch (e) {
      xfa.host.messageBox (&quot;An error occurred closing the data connections.&quot;);
      console.println(e);
   }

form1::docReady - (JavaScript, client)
   var strDocKey= new String (&quot;&quot;);
   var strSQL= new String(&quot;&quot;);

   strDocKey= &quot;123&quot;;  // set document key here to test code

   strSQL= &quot;Select * from [Table_1] Where [DocumentKey]= &#039;&quot; + strDocKey + &quot;&#039;&quot;;
   try {
      g_HdrConn = xfa.sourceSet.Hdr_Conn.clone(1);
      g_HdrConn.resolveNode (&quot;#command&quot;).query.commandType= &quot;text&quot;;
      g_HdrConn.resolveNode (&quot;#command&quot;).query.select.nodes.item(0).value= strSQL;
      g_HdrConn.open();
   }
   catch (e) {
      xfa.host.messageBox (&quot;The header data was not initialized:   &quot; + strSQL);
      console.println(e);
   }
   strSQL= &quot;Select * from [Table_2] Where [DocumentKey]= &#039;&quot; + strDocKey + &quot;&#039;&quot;;
   try {
      g_MainConn= xfa.sourceSet.Main_Conn.clone(1);
      g_MainConn.resolveNode (&quot;#command&quot;).query.commandType= &quot;text&quot;;
      g_MainConn.resolveNode (&quot;#command&quot;).query.select.nodes.item(0).value= strSQL;
      g_MainConn.open();
   }
   catch (e) {
      xfa.host.messageBox (&quot;The main connection was not initialized:   &quot; + strSQL);
      console.println(e);
   }

form1.#variables[0].g_Globals - (JavaScript, client)
   var g_HdrConn= null;
   var g_MainConn= null;

This executes correctly in Designer and will execute correctly exactly once from Acrobat. When it does so, the console window displays no errors.  After running once in Acrobat,
the above error messages are displayed, indicating that the connections were not initialized (or later closed).  However, when the connections fail, the console window also fails to open (even with Ctrl-J) so I am unable to get feedback other than my own messages.

Another oddity:   if I open Designer and run Preview once and then exit Preview mode-- but then leave Designer open while I run Acrobat, the Acrobat version will continue to run
correctly when opened multiple times as long as Designer remains open.  After I close Designer, it will run once and then fail.

I really would appreciate a solution for this one!  I would be happy to email you my pdf file if that would be any help.  My Access database consists of two simple tables, each
with a single key field and just 2-5 other data fields, so the data connection would be easy to replicate.

Thanks for any advice!    Tom</description>
		<content:encoded><![CDATA[<p>Hi Cameron,</p>
<p>Thanks for your reply.  Because this code exhibits such odd behavior, I decided to rule out any possible problems with my system.  So I did a complete uninstall of Adobe Pro and re-installed it.  Then I started with a new form, adding no<br />
scripting other than the code I am having a problem with.  This version exhibits the same strange behavior as I described previously.  Here is the entire script for this program.</p>
<p>form1::docClose &#8211; (JavaScript, client)<br />
   try {<br />
      if (g_HdrConn != null) g_HdrConn.close();<br />
      if (g_MainConn != null) g_MainConn.close();<br />
   }<br />
   catch (e) {<br />
      xfa.host.messageBox (&#8220;An error occurred closing the data connections.&#8221;);<br />
      console.println(e);<br />
   }</p>
<p>form1::docReady &#8211; (JavaScript, client)<br />
   var strDocKey= new String (&#8220;&#8221;);<br />
   var strSQL= new String(&#8220;&#8221;);</p>
<p>   strDocKey= &#8220;123&#8243;;  // set document key here to test code</p>
<p>   strSQL= &#8220;Select * from [Table_1] Where [DocumentKey]= &#8216;&#8221; + strDocKey + &#8220;&#8216;&#8221;;<br />
   try {<br />
      g_HdrConn = xfa.sourceSet.Hdr_Conn.clone(1);<br />
      g_HdrConn.resolveNode (&#8220;#command&#8221;).query.commandType= &#8220;text&#8221;;<br />
      g_HdrConn.resolveNode (&#8220;#command&#8221;).query.select.nodes.item(0).value= strSQL;<br />
      g_HdrConn.open();<br />
   }<br />
   catch (e) {<br />
      xfa.host.messageBox (&#8220;The header data was not initialized:   &#8221; + strSQL);<br />
      console.println(e);<br />
   }<br />
   strSQL= &#8220;Select * from [Table_2] Where [DocumentKey]= &#8216;&#8221; + strDocKey + &#8220;&#8216;&#8221;;<br />
   try {<br />
      g_MainConn= xfa.sourceSet.Main_Conn.clone(1);<br />
      g_MainConn.resolveNode (&#8220;#command&#8221;).query.commandType= &#8220;text&#8221;;<br />
      g_MainConn.resolveNode (&#8220;#command&#8221;).query.select.nodes.item(0).value= strSQL;<br />
      g_MainConn.open();<br />
   }<br />
   catch (e) {<br />
      xfa.host.messageBox (&#8220;The main connection was not initialized:   &#8221; + strSQL);<br />
      console.println(e);<br />
   }</p>
<p>form1.#variables[0].g_Globals &#8211; (JavaScript, client)<br />
   var g_HdrConn= null;<br />
   var g_MainConn= null;</p>
<p>This executes correctly in Designer and will execute correctly exactly once from Acrobat. When it does so, the console window displays no errors.  After running once in Acrobat,<br />
the above error messages are displayed, indicating that the connections were not initialized (or later closed).  However, when the connections fail, the console window also fails to open (even with Ctrl-J) so I am unable to get feedback other than my own messages.</p>
<p>Another oddity:   if I open Designer and run Preview once and then exit Preview mode&#8211; but then leave Designer open while I run Acrobat, the Acrobat version will continue to run<br />
correctly when opened multiple times as long as Designer remains open.  After I close Designer, it will run once and then fail.</p>
<p>I really would appreciate a solution for this one!  I would be happy to email you my pdf file if that would be any help.  My Access database consists of two simple tables, each<br />
with a single key field and just 2-5 other data fields, so the data connection would be easy to replicate.</p>
<p>Thanks for any advice!    Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bev</title>
		<link>http://forms.stefcameron.com/2006/09/18/connecting-a-form-to-a-database/#comment-5750</link>
		<dc:creator>Bev</dc:creator>
		<pubDate>Wed, 10 Nov 2010 15:31:36 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=42#comment-5750</guid>
		<description>Hi there - is there a way to prevent the form from showing the first record until you trigger the request yourself?
E.g. when I open the form up the first time I do not want the first record showing. I want to start the process myself.
Any help appreciate - the tutorial was fantastic and has guided me through the set up of my form easily.
Regards,
B.</description>
		<content:encoded><![CDATA[<p>Hi there &#8211; is there a way to prevent the form from showing the first record until you trigger the request yourself?<br />
E.g. when I open the form up the first time I do not want the first record showing. I want to start the process myself.<br />
Any help appreciate &#8211; the tutorial was fantastic and has guided me through the set up of my form easily.<br />
Regards,<br />
B.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Cameron</title>
		<link>http://forms.stefcameron.com/2006/09/18/connecting-a-form-to-a-database/#comment-5749</link>
		<dc:creator>Stefan Cameron</dc:creator>
		<pubDate>Sat, 06 Nov 2010 19:56:37 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=42#comment-5749</guid>
		<description>@Tom,

First, the confirmation dialogs that are displayed when Acrobat attempts to connect to the database cannot be suppressed programmatically. The dialogs are part of a security feature that ensures that a user&#039;s data isn&#039;t access without the user giving explicit consent to the access.

Second, about your form&#039;s strange behaviour. When you preview in Designer, you get a new PDF file every time you preview your form. Having a new PDF must have something to do with this behaviour. What is the generated error message (output of &quot;console.println(e)&quot; in your code above)?

If it is tied to not closing the connection properly (though I haven&#039;t experienced this myself), are you certain that you&#039;re closing the right connection in your tests? You should be storing the cloned (opened) connection (&quot;MainConn&quot;) in a Script Object (as a declared variable) and then closing that connection, not closing the connection again and closing the second clone. Is that what you were doing in your tests?</description>
		<content:encoded><![CDATA[<p>@Tom,</p>
<p>First, the confirmation dialogs that are displayed when Acrobat attempts to connect to the database cannot be suppressed programmatically. The dialogs are part of a security feature that ensures that a user&#8217;s data isn&#8217;t access without the user giving explicit consent to the access.</p>
<p>Second, about your form&#8217;s strange behaviour. When you preview in Designer, you get a new PDF file every time you preview your form. Having a new PDF must have something to do with this behaviour. What is the generated error message (output of &#8220;console.println(e)&#8221; in your code above)?</p>
<p>If it is tied to not closing the connection properly (though I haven&#8217;t experienced this myself), are you certain that you&#8217;re closing the right connection in your tests? You should be storing the cloned (opened) connection (&#8220;MainConn&#8221;) in a Script Object (as a declared variable) and then closing that connection, not closing the connection again and closing the second clone. Is that what you were doing in your tests?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom</title>
		<link>http://forms.stefcameron.com/2006/09/18/connecting-a-form-to-a-database/#comment-5748</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Mon, 01 Nov 2010 15:34:55 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=42#comment-5748</guid>
		<description>Stefan,

It seems that the form that I am developing is not working as well as I initially thought.   When I run the form in Designer Preview, it runs fine.  However, if I click on the pdf file to run it in Acrobat, the form runs exactly once and then produces an error if the form is run a second time.

I have setup three data connections in the form.  For two of these connections, I am using bound fields to connect form fields to database fields.    The third connection is used for running SQL insert, delete and update statements.

In docReady, I initialize the two bound data connections by updating their SQL statements.   I have my ODBC connections setup using a generic SQL statement like “SELECT [KeyField] FROM [TableName]” and then inside of docReady I re-assign the SQL statement with something more specific to the form--   like “SELECT * FROM  [TableName] WHERE [Keyfield]= ‘value’.

The problem I am having is that if I try to open the form repeatedly in Acrobat, I get a null return when cloning my data connection in docReady.   The first time I open the file, it works correctly and the data fields on the form are correctly updated.  If I then close the form without saving and open it again, the data connections fail.    Opening Designer and running the form in Design Preview seems to reset the system so that I can open it once more in Acrobat—but just once.

Here is the code I use to initialize one of my data connections in docReady:

var MainConn;
var strSQL= &quot;Select * from [Table_2] Where [DocumentKey]= &#039;&quot; + strDocKey + &quot;&#039;&quot;;
try {
   MainConn= xfa.sourceSet.Main_Conn.clone(1);
   MainConn.resolveNode (&quot;#command&quot;).query.commandType= &quot;text&quot;;
   MainConn.resolveNode (&quot;#command&quot;).query.select.nodes.item(0).value= strSQL;
   MainConn.open();
}
catch (e) {
   xfa.host.messageBox (&quot;The main data connection was not opened.&quot;);
   console.println(e);
   MainConn= null;
}

I have displayed the SQL statement just prior to its execution, so I am sure that it is the same each time the program runs.   I have also tried adding a “MainConn.close()” statement, either immediately after opening the connection or later in docClose, but this has no effect.

When the data connection fails, the console message indicates that MainConn is returning null.

Any ideas what might be happening?

Thanks, Tom</description>
		<content:encoded><![CDATA[<p>Stefan,</p>
<p>It seems that the form that I am developing is not working as well as I initially thought.   When I run the form in Designer Preview, it runs fine.  However, if I click on the pdf file to run it in Acrobat, the form runs exactly once and then produces an error if the form is run a second time.</p>
<p>I have setup three data connections in the form.  For two of these connections, I am using bound fields to connect form fields to database fields.    The third connection is used for running SQL insert, delete and update statements.</p>
<p>In docReady, I initialize the two bound data connections by updating their SQL statements.   I have my ODBC connections setup using a generic SQL statement like “SELECT [KeyField] FROM [TableName]” and then inside of docReady I re-assign the SQL statement with something more specific to the form&#8211;   like “SELECT * FROM  [TableName] WHERE [Keyfield]= ‘value’.</p>
<p>The problem I am having is that if I try to open the form repeatedly in Acrobat, I get a null return when cloning my data connection in docReady.   The first time I open the file, it works correctly and the data fields on the form are correctly updated.  If I then close the form without saving and open it again, the data connections fail.    Opening Designer and running the form in Design Preview seems to reset the system so that I can open it once more in Acrobat—but just once.</p>
<p>Here is the code I use to initialize one of my data connections in docReady:</p>
<p>var MainConn;<br />
var strSQL= &#8220;Select * from [Table_2] Where [DocumentKey]= &#8216;&#8221; + strDocKey + &#8220;&#8216;&#8221;;<br />
try {<br />
   MainConn= xfa.sourceSet.Main_Conn.clone(1);<br />
   MainConn.resolveNode (&#8220;#command&#8221;).query.commandType= &#8220;text&#8221;;<br />
   MainConn.resolveNode (&#8220;#command&#8221;).query.select.nodes.item(0).value= strSQL;<br />
   MainConn.open();<br />
}<br />
catch (e) {<br />
   xfa.host.messageBox (&#8220;The main data connection was not opened.&#8221;);<br />
   console.println(e);<br />
   MainConn= null;<br />
}</p>
<p>I have displayed the SQL statement just prior to its execution, so I am sure that it is the same each time the program runs.   I have also tried adding a “MainConn.close()” statement, either immediately after opening the connection or later in docClose, but this has no effect.</p>
<p>When the data connection fails, the console message indicates that MainConn is returning null.</p>
<p>Any ideas what might be happening?</p>
<p>Thanks, Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom</title>
		<link>http://forms.stefcameron.com/2006/09/18/connecting-a-form-to-a-database/#comment-5747</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Fri, 29 Oct 2010 20:37:46 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=42#comment-5747</guid>
		<description>I have been developing a form in Designer 8.2 based upon your articles and I have been successful at loading data onto the form from an Access database and then later modifying the associated fields in the database using insert, delete and update SQL statements.

To do so, however, I have created a couple of data connections within the form and I find that whenever the form loads and whenever my script accesses a data connection, the user gets a message indicating that the form is trying to access the data connection.    Could you tell me what I should do in order to suppress these prompts?  My users will know that the form is database enabled and should not be required to answer these pop-up prompts multiple times while using the form.   Whatever you can tell me about this issue will be appreciated.</description>
		<content:encoded><![CDATA[<p>I have been developing a form in Designer 8.2 based upon your articles and I have been successful at loading data onto the form from an Access database and then later modifying the associated fields in the database using insert, delete and update SQL statements.</p>
<p>To do so, however, I have created a couple of data connections within the form and I find that whenever the form loads and whenever my script accesses a data connection, the user gets a message indicating that the form is trying to access the data connection.    Could you tell me what I should do in order to suppress these prompts?  My users will know that the form is database enabled and should not be required to answer these pop-up prompts multiple times while using the form.   Whatever you can tell me about this issue will be appreciated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Cameron</title>
		<link>http://forms.stefcameron.com/2006/09/18/connecting-a-form-to-a-database/#comment-5746</link>
		<dc:creator>Stefan Cameron</dc:creator>
		<pubDate>Sun, 24 Oct 2010 01:13:06 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=42#comment-5746</guid>
		<description>@Ken,

I have just what you need: Please see my tutorial on &lt;a href=&quot;http://forms.stefcameron.com/2006/12/18/databases-inserting-updating-and-deleting-records/&quot; rel=&quot;nofollow&quot;&gt;inserting, updating and deleting records&lt;/a&gt; in a database.</description>
		<content:encoded><![CDATA[<p>@Ken,</p>
<p>I have just what you need: Please see my tutorial on <a href="http://forms.stefcameron.com/2006/12/18/databases-inserting-updating-and-deleting-records/" rel="nofollow">inserting, updating and deleting records</a> in a database.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ken</title>
		<link>http://forms.stefcameron.com/2006/09/18/connecting-a-form-to-a-database/#comment-5745</link>
		<dc:creator>Ken</dc:creator>
		<pubDate>Wed, 20 Oct 2010 13:37:29 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=42#comment-5745</guid>
		<description>Hi, have a question on updating access databases.
using LC2 designer and Adobe Pro 9. I have a a query working using the slect ... with a WHere to get a specific record. Works great to prepopulate a form with specifc data.  Now I am trying to get 2 new SQL querys to work, the INSERT INTO and the UPDATE query.
I am not talking about these:
xfa.sourceSet.{DataConnectionName}.addNew()
xfa.sourceSet.{DataConnectionName}.update()

Does Adobe support these SQL queries, and if so, do you have a sample that I can see?
Ken</description>
		<content:encoded><![CDATA[<p>Hi, have a question on updating access databases.<br />
using LC2 designer and Adobe Pro 9. I have a a query working using the slect &#8230; with a WHere to get a specific record. Works great to prepopulate a form with specifc data.  Now I am trying to get 2 new SQL querys to work, the INSERT INTO and the UPDATE query.<br />
I am not talking about these:<br />
xfa.sourceSet.{DataConnectionName}.addNew()<br />
xfa.sourceSet.{DataConnectionName}.update()</p>
<p>Does Adobe support these SQL queries, and if so, do you have a sample that I can see?<br />
Ken</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Cameron</title>
		<link>http://forms.stefcameron.com/2006/09/18/connecting-a-form-to-a-database/#comment-5744</link>
		<dc:creator>Stefan Cameron</dc:creator>
		<pubDate>Fri, 10 Sep 2010 11:24:48 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=42#comment-5744</guid>
		<description>@Tchadd Siebken,

I don&#039;t know of issues with User DSNs vs System DSNs.</description>
		<content:encoded><![CDATA[<p>@Tchadd Siebken,</p>
<p>I don&#8217;t know of issues with User DSNs vs System DSNs.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

