I am working on a Windows Form-Based application in Visual Studio 2008 using C# with an Access database as a back end. I added the Access database into the project by going to Data->Add New Data Source
and I am able to retrieve data from the database's custom-made DataSet
perfectly.
My next goal is to save new data back into the Access database, creating a new row. For the life of me, however, I can't seem to figure out how to do this. It looks like I need either an OLEDbConnection
to the database or a TableAdapter
hooked up to the database, but I don't seem to have either one of those. I'd think they would be premade or something when I added the new data source, just like the DataSet
was, but if that's the case I can't figure out how to reference them.
What is the best way to add data back into a data source that's been added to the project?