Hi all.
I've created an application that will read data from an MDB table (linked to an Excel spreadsheet), but I during debugging I cannot actually save any changes made to the table. I've gone through all the walkthroughs but I just end up with an error message.
Is it actually possible to write to an MDB file If not, how do I create an MDF file (which I know is writable) from an existing Excel spreadsheet Although I have created a version of this spreadsheet on my local server, VB2005E won't let me connect to my local server when choosing a data source.
Clearly I'm a complete newbie at this, so all advice is very gratefully appreciated.

Help! I can't save data changes to an MDB file in Visual Basic 2005 Express
Ryan Garaygay
Pavan Podila
Here you go sir:
TableAdapters in Visual Studio 2005 , http://msdn2.microsoft.com/en-us/library/ms364060(VS.80).aspx
VB.NET 2005 Tutorials: Simple Data Binding, http://www.exforsys.com/content/view/1547/350/
BindingSource Class, http://msdn2.microsoft.com/en-us/library/system.windows.forms.bindingsource.aspx
Encapsulates a data source for binding to controls.
The BindingSource component serves two purposes. First, it provides a layer of indirection when binding the controls on a form to data. This is accomplished by binding the BindingSource component to your data source, and then binding the controls on your form to the BindingSource component. All further interaction with the data, including navigating, sorting, filtering, and updating, is accomplished with calls to the BindingSource component.
Second, the BindingSource component can act as a strongly typed data source. Adding a type to the BindingSource component with the Add method creates a list of that type.
In This Section
Introduces the general concepts of the BindingSource component, which allows you to bind a data source to a control.
Shows how to handle a DBNull value from the data source using the BindingSource component.
Demonstrates using the BindingSource component to apply sorts and filters to displayed data.
Shows how to use the BindingSource component to bind to a Web service.
Demonstrates using the BindingSource component to gracefully handle errors that occur in a data binding operation.
Demonstrates using a BindingSource component to bind to a type.
Demonstrates using a BindingSource component to bind to a factory object or method.
Demonstrates using a BindingSource component to create new items and add them to a data source.
Demonstrates using a BindingSource component to raise change-notification events for data sources that do not support change notification.
Demonstrates how to use a type that inherits from the INotifyPropertyChanged with a BindingSource control.
Demonstrates how to respond to changes in the data source using the BindingSource component.
Shows how to use the BindingSource to bind multiple forms to the same data source.
Reference
Provides reference documentation for the BindingSource component.
Provides reference documentation for the BindingNavigator control.
Related Sections
Contains links to topics describing the Windows Forms data binding architecture.
sql_chris_nz
wolverine123
Vijay R
mew4ever23
wmysu
Make sure that a primary key has been set on the table in the database.
Make sure that the TableAdapter has an Update command and that the query statement is correct. Make sure that it only references one table.
Most likely the problem is with the TableAdapter.
Voldemort
Update requires a valid UpdateCommand when passed DataRow collection with modified rows.
And this is the code for the save button:
Private Sub GaiaDataBindingNavigatorSaveItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles GaiaDataBindingNavigatorSaveItem.Click
Me.Validate()
Me.GaiaDataBindingSource.EndEdit()
Me.GaiaDataTableAdapter.Update(Me.GaiaDataSet.GaiaData)
End Sub