Language: VB.NET
Database: Access
I've created an application that accesses a table in an Access database. The application works on the original set of columns in that table.
Predictably, I've discovered that I need to add a column to that table in the database. I added the column in Access. I added a textbox on the form where the other fields are entered to enable the user to enter data for the new field.
I can open the designer for that form. I can select Edit in Dataset Designer from the context menu for the ProgramDataDataSet at the bottom of the screen. I see the list of the original columns for that dataset, but the new database column name does not appear there. I can select Insert Column from the context menu for that list of columns of the dataset. I can insert a column in that list. I can set some of the Properties for that new column (name, caption, datatype).
I think all I need to do is set the Source for the new dataset column to the new database column name. But that name does not appear on the list provided for Source.
I have tried modifying the Queries in Dataset Designer to add the database column name to the SELECT statement. That gets the new column name to show up in the list provided for Source in the dataset column Properties window. But when I try to set the Source to the new name, Visual Studio tells me the property is not valid and gives me Details: "The DataColumnMapping.SourceColumn is required to be unique, 'VcritCM3gmol' already exists in the collection."
I'm sure I'm just not seeing a menu or window where I can get this done. Any help is appreciated.
Database: Access
I've created an application that accesses a table in an Access database. The application works on the original set of columns in that table.
Predictably, I've discovered that I need to add a column to that table in the database. I added the column in Access. I added a textbox on the form where the other fields are entered to enable the user to enter data for the new field.
I can open the designer for that form. I can select Edit in Dataset Designer from the context menu for the ProgramDataDataSet at the bottom of the screen. I see the list of the original columns for that dataset, but the new database column name does not appear there. I can select Insert Column from the context menu for that list of columns of the dataset. I can insert a column in that list. I can set some of the Properties for that new column (name, caption, datatype).
I think all I need to do is set the Source for the new dataset column to the new database column name. But that name does not appear on the list provided for Source.
I have tried modifying the Queries in Dataset Designer to add the database column name to the SELECT statement. That gets the new column name to show up in the list provided for Source in the dataset column Properties window. But when I try to set the Source to the new name, Visual Studio tells me the property is not valid and gives me Details: "The DataColumnMapping.SourceColumn is required to be unique, 'VcritCM3gmol' already exists in the collection."
I'm sure I'm just not seeing a menu or window where I can get this done. Any help is appreciated.