alander
Well-known member
hi, i wanna delete a record from a MS ACCESS database, when i click the button delete, everything shows beautifully,
however when i load the form again, the record doesnt go away, the add new does commit but the delete doesn't..
any help will be greatly appreciated
however when i load the form again, the record doesnt go away, the add new does commit but the delete doesn't..
any help will be greatly appreciated
VB.NET:
cmItem.EndCurrentEdit()
If MessageBox.Show("Delete Current Record", "Confirm", MessageBoxButtons.YesNo, MessageBoxIcon.Question) = Windows.Forms.DialogResult.Yes Then
cmItem.RemoveAt(cmItem.Position)
Else
MessageBox.Show("Record Not Deleted", "Not Deleted", MessageBoxButtons.OK, MessageBoxIcon.Information)
End If