dougconran
Technical User
How can I read data in a dataset (created using the Data Adapter Wizard) declared in another form?
I am using the Data Adapter Wizard to set up a connection to an Access database, one table of which I then display in a DataGrid.
This DataGrid serves 2 purposes (1) to provide a means of drilling down to a detail screen when the user clicks on a cell in the first column and (2) to provide a means of multi-selecting a number of rows by clicking on a checkbox in the last column.
Although the datagrid is populated from the dataset I need to manually add the last, checkbox, column as it is not part of the access table. The only way that I have found of making this writeable is to use the Data adapter wizard and then do a dataset.tables(0).columns.add(...). Manually declaring the connection, adapter and dataset seems to force everything to Readonly, even if I explicitely set readonly = false.
Unfortunately, the dataset etc need to be global so that I can read it from the drill down form.
How do I declare an OleDBConnection, OleDBDataAdapter and Dataset to be global when they are created by the Data Adapter Wizard.
TIA
Doug
I am using the Data Adapter Wizard to set up a connection to an Access database, one table of which I then display in a DataGrid.
This DataGrid serves 2 purposes (1) to provide a means of drilling down to a detail screen when the user clicks on a cell in the first column and (2) to provide a means of multi-selecting a number of rows by clicking on a checkbox in the last column.
Although the datagrid is populated from the dataset I need to manually add the last, checkbox, column as it is not part of the access table. The only way that I have found of making this writeable is to use the Data adapter wizard and then do a dataset.tables(0).columns.add(...). Manually declaring the connection, adapter and dataset seems to force everything to Readonly, even if I explicitely set readonly = false.
Unfortunately, the dataset etc need to be global so that I can read it from the drill down form.
How do I declare an OleDBConnection, OleDBDataAdapter and Dataset to be global when they are created by the Data Adapter Wizard.
TIA
Doug