radioengineeruk
Member
- Joined
- Mar 13, 2007
- Messages
- 5
- Programming Experience
- Beginner
Hi
I'm having trouble deleting everything from a table. The connection is ok as the querie to get the data is working. This delete bit just doesn't do anything.
Any ideas ?
Thanks
I'm having trouble deleting everything from a table. The connection is ok as the querie to get the data is working. This delete bit just doesn't do anything.
Any ideas ?
Thanks
VB.NET:
Dim LibraryCommandDel As OleDbCommand
Dim LibraryAdapterDel As OleDbDataAdapter
LibraryAdapterDel = New OleDbDataAdapter
LibraryCommandDel = New OleDbCommand("DELETE FROM Library", Library)
LibraryAdapterDel = New OleDbDataAdapter()
LibraryAdapterDel.DeleteCommand = LibraryCommandDel
LibraryAdapterDel.Update(LibraryTable)