Results 1 to 4 of 4

Thread: [RESOLVED] VS 2013 - Updating TableAdapterManager Raises An Error

Threaded View

  1. #1

    Thread Starter
    Junior Member
    Join Date
    May 2013
    Posts
    21

    Resolved [RESOLVED] VS 2013 - Updating TableAdapterManager Raises An Error

    Hello, Good Day

    I'm hoping someone here can help me with this, I'm using data sources and for awhile now I've been looking into why i can't update the database with new data and this is as far as I've gotten.

    When i click save on the auto-generated binding navigator this code runs,


    Code:
           Me.Validate()
            Me.Table1BindingSource.EndEdit()
            Me.TableAdapterManager.UpdateAll(Me.NorthwindDataSet)

    and on the last line instead of getting a successful update, i get this.


    An unhandled exception of type 'System.InvalidOperationException' occurred in UpdateSingleTableWalkthrough.exe

    Additional information: Update requires a valid UpdateCommand when passed DataRow collection with modified rows.



    After a lot of online searching, i found my way to editing the dataset in the designer. There i noticed the updatecommand is missing

    Name:  Screenshot (122).png
Views: 2888
Size:  11.9 KB


    so i attempted to add one and this is where i'm stumped.

    Name:  Screenshot (125).jpg
Views: 2812
Size:  26.7 KB

    I've tried various things that i hoped would work but they've all ended in the database not being updated. I really would appreciate it if anyone here could grant me the use of their knowledge.

    Oh and i'm using the Microsoft Access Database Engine as my provider, if that helps.
    Last edited by WestFiasco; Oct 29th, 2014 at 09:07 AM. Reason: Added Code Tags

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width