Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

Problem When deleting record from database

$
0
0

Hi ,

I have a question. Firstly I'm using VB

I have a problem about deleting any record from access database , That's the code I'm use it for add new item and it's work but it's not work when I tried to edit any rows " it's not want to Save" but work for add new Item.

 Try
            Me.Validate()
            Me.CustomerBindingSource.EndEdit()
           Me.CustomerTableAdapter.Update(Me.KonoDataSet.Customer)

            MsgBox("Update Successful")
        Catch ex As Exception
            MsgBox("Update Failed")

        End Try

And That's my code for Deleting any record from database But it's not work and that's a problem.

 CustomerBindingSource.RemoveCurrent()
        CustomerBindingSource.EndEdit()
        Me.CustomerTableAdapter.Update(Me.KonoDataSet.Customer)

Can anybody help me about that issue ?


Viewing all articles
Browse latest Browse all 2535

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>