Community,
After some additional research and a lot of trial & error, I have figured out how to get vb.NET to update its MS ACCESS Database. Basically, you need to change one property of the imported database, and change the update command of the imported dataset. Here is a complete walkthrough of the steps.
►MS Access 2013
►Visual Studio 2012
►.NET Framework 4.5
(For best results, follow each step deliberately).
Step 1: Create Sample MS Access Database
- Table Name:** "Table A"
- Field 1: "ID" | [Autonumber Product Key]
- Field 2: "Title" | "Sample A", "Sample B", ... "Sample G"
- Field 3: "Val" | "a", "b", ..., "g"
- Save As: "SampleAccessDatabase.mdb"
- Close: Close MS Access
Step 2: Open Visual Studio 2012 Project
- New Project: Templates ► Visual Basic ► "Windows Form Application"
Step 3: Connect to MS Access Database
- Add New Data Source ► Database [Next>] ► Database [Next>] ► New Connection
- Add Connection Window: Data Source ► "Microsoft Access Database File (OLE DB)"
- Add Connection Window: Database File Name ► Browse ► Grab "SampleAccessDatabase.mdb" file ► [Hit OK]
- Add Connection Window: [Hit OK] ► [Next>] ► [Hit Yes] ► [Next >]
- Choose Your Database Objects: Select "Table A" ► Finish
Step 4: Place Control Objects
- Data Sources: Grab "Table A" and place it on the "Form1" object
Step 5: Change DataSet Property
- Solution Explorer: Select "SampleAccessDatabase.mdb"
- Properties: Select "Copy To Output Directory" ► Change to "Copy if newer"
Step 6: Change TableAdapter Update Command
- Solution Explorer: Double-Click "SampleAccessDatabaseDataset.xsd"
- Pane: Select "Table ATableAdapter" Object in the middle pane
- Properties: Expand [Update Command] by clicking on dropdown menu and selecting [New]
- Update Command: Open [CommandText] by clicking on the ellipsis [...]
- Add Table: Select "Table A" and hit [Add]
- Query Builder: After the word SET type "Field2=?". Hit Enter
- Query Builder: After the word "WHERE" type "(Field1=?". [Hit OK]
Step 7: Test it out
- CTRL+F5: Change "Field2" to "1","2",..."7" ► Close Form/Application
- CTRL+F5: View updated DataGrid
That is it. Now, you can create your .NET Desktop application in Visual Studio 2012 with the ability to store & update data from your MS Access database (2013).