Click here to Skip to main content
13,087,941 members (63,662 online)
Rate this:
 
Please Sign up or sign in to vote.
See more:
My windows application form works finely but whenever i modify already values which are already modified it shows above subject line error how to solve it?

Private Sub Button1_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Me.Validate()
        Me.ItemsBindingSource.EndEdit()
        Me.TableAdapterManager.UpdateAll(Me.ItemsDataSet)
    End Sub


i am using an sql server for connecting an mdf file for connecting through following command

Imports System.Data.SqlClient
Imports System.Data.Sql
 
Module Module1
    Public acscmd As New SqlCommand
    Public acsconn As New SqlConnection
    Public acsda As New SqlDataAdapter
    Public acsds As New DataSet
    Public strsql As String
    Public Strreportname As String
    Sub Connect()
        acsconn.ConnectionString = "Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\Items.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True;"
        acsconn.Open()
        If acsconn.State = ConnectionState.Open Then
            MsgBox("Connected")
        End If
    End Sub
End Module


please give me a valid code to correct my error. the error occurs in this line
Me.TableAdapterManager.UpdateAll(Me.ItemsDataSet)


Please help me.
Posted 10-Dec-12 3:57am
Comments
Sergey Alexandrovich Kryukov 10-Dec-12 17:14pm
   
How can it be "all topic"? Tag the platform, the language and whatever else is relevant.
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy |
Web03 | 2.8.170813.1 | Last Updated 10 Dec 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100