<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/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>Using TableAdapters to Insert Related Data into an MS Access Database</title><link>http://blogs.msdn.com/b/bethmassi/archive/2009/05/14/using-tableadapters-to-insert-related-data-into-an-ms-access-database.aspx</link><description>I’ve posted before about how to use TableAdapters to update parent-child (master-detail) relationships against SQL server. It’s pretty straightforward and Visual Studio generates all the code for you to properly insert, update and delete your data. However</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Using TableAdapters to Insert Related Data into an MS Access Database</title><link>http://blogs.msdn.com/b/bethmassi/archive/2009/05/14/using-tableadapters-to-insert-related-data-into-an-ms-access-database.aspx#10402055</link><pubDate>Wed, 13 Mar 2013 17:56:10 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10402055</guid><dc:creator>PatO</dc:creator><description>&lt;p&gt;Thank You Beth - this is still 5 star information and was exactly the guidelines I needed for my project to proceed. I modified it for ODBC and it works the same. &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10402055" width="1" height="1"&gt;</description></item><item><title>re: Using TableAdapters to Insert Related Data into an MS Access Database</title><link>http://blogs.msdn.com/b/bethmassi/archive/2009/05/14/using-tableadapters-to-insert-related-data-into-an-ms-access-database.aspx#10309583</link><pubDate>Wed, 23 May 2012 17:37:54 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10309583</guid><dc:creator>fefed</dc:creator><description>&lt;p&gt;hi,&lt;/p&gt;
&lt;p&gt;can you explain to me how to connect ms.access database to wapwinGIS file using visual studio?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10309583" width="1" height="1"&gt;</description></item><item><title>re: Using TableAdapters to Insert Related Data into an MS Access Database</title><link>http://blogs.msdn.com/b/bethmassi/archive/2009/05/14/using-tableadapters-to-insert-related-data-into-an-ms-access-database.aspx#10242415</link><pubDate>Tue, 29 Nov 2011 14:35:01 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10242415</guid><dc:creator>Matt</dc:creator><description>&lt;p&gt;Hi, nice tutorial. I am trying to make a simple DB application using SQLCE. When I insert a new row into my dataset and update the dataadapter, it works OK. When I delete the same row, it throws DBConcurrencyException after updating the dataadapter.&lt;/p&gt;
&lt;p&gt;This happens only if I assign primary key to the identity column. Without the primary key it works OK, but I am not able to use the DataRow.Find function, which is vital for my application.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10242415" width="1" height="1"&gt;</description></item><item><title>re: Using TableAdapters to Insert Related Data into an MS Access Database</title><link>http://blogs.msdn.com/b/bethmassi/archive/2009/05/14/using-tableadapters-to-insert-related-data-into-an-ms-access-database.aspx#10242223</link><pubDate>Tue, 29 Nov 2011 01:25:45 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10242223</guid><dc:creator>Beth Massi</dc:creator><description>&lt;p&gt;Hi Swampmonster316,&lt;/p&gt;
&lt;p&gt;It doesn&amp;#39;t look like you are using the TableAdapterManager. Take a look at this video which explains how to use this object, it&amp;#39;s much easier to deal with than managing the update/insert/deletes yourself: &lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://msdn.microsoft.com/en-us/vstudio/cc138241.aspx"&gt;msdn.microsoft.com/.../cc138241.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;HTH,&lt;/p&gt;
&lt;p&gt;-Beth&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10242223" width="1" height="1"&gt;</description></item><item><title>re: Using TableAdapters to Insert Related Data into an MS Access Database</title><link>http://blogs.msdn.com/b/bethmassi/archive/2009/05/14/using-tableadapters-to-insert-related-data-into-an-ms-access-database.aspx#10241335</link><pubDate>Thu, 24 Nov 2011 17:16:23 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10241335</guid><dc:creator>Michael</dc:creator><description>&lt;p&gt;Hi Beth,&lt;/p&gt;
&lt;p&gt;thank you so much for this great tutorial.&lt;/p&gt;
&lt;p&gt;I have been at the brink of desparation with this stupid DataSet Designer...&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10241335" width="1" height="1"&gt;</description></item><item><title>re: Using TableAdapters to Insert Related Data into an MS Access Database</title><link>http://blogs.msdn.com/b/bethmassi/archive/2009/05/14/using-tableadapters-to-insert-related-data-into-an-ms-access-database.aspx#10241277</link><pubDate>Thu, 24 Nov 2011 12:27:40 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10241277</guid><dc:creator>swampmonster316</dc:creator><description>&lt;p&gt;Hi Beth!&lt;/p&gt;
&lt;p&gt;I am having a totally different behavior now. I set up the updates to the database like you show in this video: &lt;a rel="nofollow" target="_new" href="http://msdn.microsoft.com/en-us/vstudio/bb725826"&gt;msdn.microsoft.com/.../bb725826&lt;/a&gt; (Updating Related Tables).&lt;/p&gt;
&lt;p&gt;Then I tried to save the new rows created with the DataGridView control with this code:&lt;/p&gt;
&lt;p&gt;Private Function Save() As Boolean&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Dim saved As Boolean = False&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;If Me.MyDataSet1.HasChanges Then&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Try&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Dim customerUpdates() As DataRow = Me.MyDataSet1.Customer.Select(&amp;quot;&amp;quot;, &amp;quot;&amp;quot;, DataViewRowState.Added Or DataViewRowState.ModifiedCurrent)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Dim orderUpdates() As DataRow = Me.MyDataSet1.Order.Select(&amp;quot;&amp;quot;, &amp;quot;&amp;quot;, DataViewRowState.Added Or DataViewRowState.ModifiedCurrent)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Me.CustomerTableAdapter1.Update(customerUpdates)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Me.OrderTableAdapter1.Update(orderUpdates)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Dim customerDeletes() As DataRow = Me.MyDataSet1.Customer.Select(&amp;quot;&amp;quot;, &amp;quot;&amp;quot;, DataViewRowState.Deleted)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Dim orderDeletes() As DataRow = Me.MyDataSet1.Order.Select(&amp;quot;&amp;quot;, &amp;quot;&amp;quot;, DataViewRowState.Deleted)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Me.OrderTableAdapter1.Update(orderDeletes)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Me.customerTableAdapter1.Update(customerDeletes)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;saved = True&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Catch ex As Exception&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;MsgBox(ex.ToString)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;End Try&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;End If&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Return saved&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;End Function&lt;/p&gt;
&lt;p&gt;and pressing the Save button:&lt;/p&gt;
&lt;p&gt;Private Sub cmdSave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdSave.Click&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Try&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Me.Validate()&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;#39;Call EndEdit on all BindingSources! &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Me.CustomerBindingSource.EndEdit()&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Me.OrderBindingSource.EndEdit()&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Me.TableAdapterManager.UpdateAll(Me.MyDataSet1)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;If Me.Save Then&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;MsgBox(&amp;quot;Your records were saved.&amp;quot;)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;End If&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Catch ex As Exception&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;MsgBox(ex.ToString)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;End Try&lt;/p&gt;
&lt;p&gt;End Sub&lt;/p&gt;
&lt;p&gt;I noticed this strange behavior: When I try to add rows for the first customer in the ListBox and click the Save button, the rows are being saved back to the database where I can open and verify it. But when I try to pick another customer from the ListBox, I get a strange error which says: &lt;/p&gt;
&lt;p&gt;&amp;#39;Cannot update OrderID; field not updatabale at System.Data.CommonDbDataAdapter.UpdatedRowStatusErrors(RowUpdatedEventArgs rowUpdatedEvent BatchCommandInfo[]batchCommands,Int32CommandCount.....etc etc...&amp;#39;&lt;/p&gt;
&lt;p&gt;This is a very long error and I have no idea what this is or how to deal with it. I&amp;#39;ve searched many places but could not find how to deal with this error.&lt;/p&gt;
&lt;p&gt;The second problem still remains when I try to choose another customer from the ListBox and it continues to give me an error:&lt;/p&gt;
&lt;p&gt;&amp;#39;Cannot clear table Customer because ForeignKeyConstraint CustomerTableOrderTable enforces constraints and there are child rows in OrderTable.&amp;#39; &amp;nbsp;on this line ---&amp;gt;&amp;gt;&amp;gt;Table.Clear()&lt;/p&gt;
&lt;p&gt;in the code below:&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; If ClearBeforeFill Then&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Table.Clear()&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; End If&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Return Adapter.Fill(Table)&lt;/p&gt;
&lt;p&gt;While at other times, it gives me a completely different error: &amp;#39;Object reference not set to an instance of an object.&amp;#39; &lt;/p&gt;
&lt;p&gt;on this line ---&amp;gt;&amp;gt;&amp;gt; Dim CustomerID As String = CustomerListBox.SelectedValue.ToString&lt;/p&gt;
&lt;p&gt;in the code below:&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim CustomerID As String = CustomerListBox.SelectedValue.ToString&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; CustomerTableAdapter.FillByCustomerID(MyDataSet1.CustomerTable, CustomerID)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; OrderTableAdapter.FillByCustomerID(MyDataSet1.OrderTable, CustomerID)&lt;/p&gt;
&lt;p&gt;I even tried to fix this by turning off the Constraints to false on the DataSet designer. But nothing seems to be working.&lt;/p&gt;
&lt;p&gt;Beth, please help me resolve these two errors as I am nearing the completion of my application and I&amp;#39;m really stuck in the middle.&lt;/p&gt;
&lt;p&gt;Appreciate all your help, thanks a lot!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10241277" width="1" height="1"&gt;</description></item><item><title>re: Using TableAdapters to Insert Related Data into an MS Access Database</title><link>http://blogs.msdn.com/b/bethmassi/archive/2009/05/14/using-tableadapters-to-insert-related-data-into-an-ms-access-database.aspx#10240713</link><pubDate>Wed, 23 Nov 2011 08:41:45 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10240713</guid><dc:creator>swampmonster316</dc:creator><description>&lt;p&gt;Hi Beth!&lt;/p&gt;
&lt;p&gt;I really appreciate the time you take to reply to everyone you can!&lt;/p&gt;
&lt;p&gt;I am facing two nagging, frustrating issues at the moment:&lt;/p&gt;
&lt;p&gt;1. As shown above, I did exactly like you show, I setup the relation in the dataset properly; then dragged the RELATED Order as DataGridView control. Then I coded the Save button as:&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Me.Validate()&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;#39;Call EndEdit on all BindingSources! &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Me.ParentTableBindingSource.EndEdit()&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Me.ChildTableBindingSource.EndEdit()&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Me.TableAdapterManager.UpdateAll(Me.MyDataSet1)&lt;/p&gt;
&lt;p&gt;On clicking the Save button; no child rows are being added for the customer. No exceptions and errors are thrown. Copy to Output Directory is set to &amp;#39;copy if newer&amp;#39;. I can also add a new customer and see it physically present in the database when I open it. So no issues with &amp;#39;Copy to Output Directory&amp;#39;.&lt;/p&gt;
&lt;p&gt;Also, as the Save button is clicked, the control passes back to the Main form and the newly added child row or rows should be visible in the Lixtbox on the Main form. What am I doing wrong here ?? Please help.&lt;/p&gt;
&lt;p&gt;2. Every time I select a new Customer from the ListBox on the main form, sometimes I get two different errors: &amp;#39;Cannot clear table Customer because ForeignKeyConstraint CustomerTableOrderTable enforces constraints and there are child rows in OrderTable.&amp;#39; at ---&amp;gt;&amp;gt;&amp;gt;Table.Clear()&lt;/p&gt;
&lt;p&gt;in the code below:&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;If ClearBeforeFill Then&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Table.Clear()&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;End If&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Return Adapter.Fill(Table)&lt;/p&gt;
&lt;p&gt;While at other times, it gives me a completely different error: &amp;#39;Object reference not set to an instance of an object.&amp;#39; at ---&amp;gt;&amp;gt;&amp;gt;Dim CustomerID As String = CustomerListBox.SelectedValue.ToString&lt;/p&gt;
&lt;p&gt; in the code below:&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Dim CustomerID As String = CustomerListBox.SelectedValue.ToString&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;CustomerTableAdapter.FillByCustomerID(MyDataSet1.CustomerTable, CustomerID)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;OrderTableAdapter.FillByCustomerID(MyDataSet1.OrderTable, CustomerID)&lt;/p&gt;
&lt;p&gt;Can you please help me understand these two errors and how I will correct them ?&lt;/p&gt;
&lt;p&gt;Very grateful to you !&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10240713" width="1" height="1"&gt;</description></item><item><title>re: Using TableAdapters to Insert Related Data into an MS Access Database</title><link>http://blogs.msdn.com/b/bethmassi/archive/2009/05/14/using-tableadapters-to-insert-related-data-into-an-ms-access-database.aspx#10239386</link><pubDate>Tue, 22 Nov 2011 01:11:59 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10239386</guid><dc:creator>Beth Massi</dc:creator><description>&lt;p&gt;@swampmonster316 - the CustomerID field will only auto-increment on the parent table (Customer). It needs to be set on the child rows as the foreign key either by the binding source or in code. If you are using the binding source method then you just need to make sure that you set up the relation on the dataset properly (like shown above) AND you need to make sure you drag the RELATED data source onto the form -- in your case you would expand the customer and see Order under that. You don&amp;#39;t need to set any fields manually if you use a binding source and it will take care of setting the foreign keys for you.&lt;/p&gt;
&lt;p&gt;HTH,&lt;/p&gt;
&lt;p&gt;-B&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10239386" width="1" height="1"&gt;</description></item><item><title>re: Using TableAdapters to Insert Related Data into an MS Access Database</title><link>http://blogs.msdn.com/b/bethmassi/archive/2009/05/14/using-tableadapters-to-insert-related-data-into-an-ms-access-database.aspx#10239007</link><pubDate>Mon, 21 Nov 2011 05:32:50 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10239007</guid><dc:creator>swampmonster316</dc:creator><description>&lt;p&gt;The CustomerID field is itself an AutoNumber field, so I should not have to fill that in myself, this should be auto incremented in the TextBox when it retrieves the CustomerID. So the user should just be entering the record and not worry about the CustomerID field which should be displayed as the OrderDetails form loads.&lt;/p&gt;
&lt;p&gt;Please help me understand is I am wrong with this.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10239007" width="1" height="1"&gt;</description></item><item><title>re: Using TableAdapters to Insert Related Data into an MS Access Database</title><link>http://blogs.msdn.com/b/bethmassi/archive/2009/05/14/using-tableadapters-to-insert-related-data-into-an-ms-access-database.aspx#10239005</link><pubDate>Mon, 21 Nov 2011 05:26:42 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10239005</guid><dc:creator>swampmonster316</dc:creator><description>&lt;p&gt;Hi Beth!&lt;/p&gt;
&lt;p&gt;The specific error I&amp;#39;m getting when trying to insert a record is, &amp;quot;You must enter a value in the &amp;#39;OrderDetails.CustomerID&amp;#39; field.&amp;quot;&lt;/p&gt;
&lt;p&gt;What could be causing this error and what should I do to remove it ?&lt;/p&gt;
&lt;p&gt;Thanks for replying.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10239005" width="1" height="1"&gt;</description></item></channel></rss>