Add&Remove rows from DB using listbox
I have a simple Access database with a table with names. I am an
old V6 user, beginning to use VB2005
I created a listbox that lists all the records in my database table,
using the Databindings.
I created an ADD button, to add new records, and update my database with the .update command. Working.
I cannot find sample code to select a record from my list box, and
Delete the record from my database.
Also if I want to select a record from the listbox, change the contents, and update my database.
It is propably the same using a datagridview control.
I would appreciate it if someone could help me with some sample
code to add,edit & delete from a table using the listbox or datagridview controls, using VB2005
Very much appreciated.