Hey all
I have follow this guide.
Visual Basic .NET programming for Beginners - A Database Project
But then i want to delete from my access i get error
Here are a screenshot.
Here are the code in my Deletebutton.
Private Sub btnDelete_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnDelete.Click
' If MessageBox.Show("Do you really want to Delete this Record?", _
' "Delete", MessageBoxButtons.YesNo, _
' MessageBoxIcon.Warning) = DialogResult.No Then
' MsgBox("Operation Cancelled")
' Exit Sub
'End If
Dim cb As New OleDb.OleDbCommandBuilder(da)
ds.Tables("AddressBook").Rows(inc).Delete()
MaxRows = MaxRows - 1
inc = 0
NavigateRecords()
da.Update(ds, "AddressBook")
End Sub
And if you see in the link, so i have write just what the guide says..
So i dont understandt how and why....
For me i thing its something the Navigator not get a message there tells what item are delete or something like that.
But i will be happy if some on could help me... or maybe give me some guide there are better and easy to follow...
I have follow this guide.
Visual Basic .NET programming for Beginners - A Database Project
But then i want to delete from my access i get error
Here are a screenshot.
Here are the code in my Deletebutton.
Private Sub btnDelete_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnDelete.Click
' If MessageBox.Show("Do you really want to Delete this Record?", _
' "Delete", MessageBoxButtons.YesNo, _
' MessageBoxIcon.Warning) = DialogResult.No Then
' MsgBox("Operation Cancelled")
' Exit Sub
'End If
Dim cb As New OleDb.OleDbCommandBuilder(da)
ds.Tables("AddressBook").Rows(inc).Delete()
MaxRows = MaxRows - 1
inc = 0
NavigateRecords()
da.Update(ds, "AddressBook")
End Sub
And if you see in the link, so i have write just what the guide says..
So i dont understandt how and why....
For me i thing its something the Navigator not get a message there tells what item are delete or something like that.
But i will be happy if some on could help me... or maybe give me some guide there are better and easy to follow...