I'm not sure that I understand the Merge method correctly. I have two datasets each with its own datadapter.
The first:
DataAdapter --> daAccess 'generates a dataset from an access dbase
Dataset --> DsBillingRatesAccess1
The second:
DataAdapter --> daSQL 'generates a dataset from an SQL dbase
Dataset --> DsBillingRatesSQL1
I have a form with two datagrids on it, dgAccess and dgSQL.
The datagrid on the left is bound to DsBillingRatesAccess1 and the datagrid on the right is bound to DsBillingRatesSQL1. I load the Access data into dgAccess when a button is pressed. I have another button that I use to Merge the data in DsBillingRatesAccess1 into DsBillingRatesSQL1 (which is empty to start with). Here is the code for the merge button.
I expect that when the merge button is pressed that the datagrid on the right will fill up with the merged data, but it doesn't. Once the datagrid on the right is filled up I want to call the Update method on the daSQL datadapter to persist changes to the SQL database.
Is there something else I need to do after I merge the source dataset into the target dataset in order for the datagrid on the right to fill up with the data? Does it have something to do with each of the separate datasets being typed differently?
The first:
DataAdapter --> daAccess 'generates a dataset from an access dbase
Dataset --> DsBillingRatesAccess1
The second:
DataAdapter --> daSQL 'generates a dataset from an SQL dbase
Dataset --> DsBillingRatesSQL1
I have a form with two datagrids on it, dgAccess and dgSQL.
The datagrid on the left is bound to DsBillingRatesAccess1 and the datagrid on the right is bound to DsBillingRatesSQL1. I load the Access data into dgAccess when a button is pressed. I have another button that I use to Merge the data in DsBillingRatesAccess1 into DsBillingRatesSQL1 (which is empty to start with). Here is the code for the merge button.
Code:
DsBillingRatesSQL1.Merge(DsBillingRatesAccess1, False)
Is there something else I need to do after I merge the source dataset into the target dataset in order for the datagrid on the right to fill up with the data? Does it have something to do with each of the separate datasets being typed differently?