Deleting row
Hi Helen
This is a real gash answer to what you want to do...
If you added a little bit of code which set a global variable ID to the Code of the last row selected, then you could use the following code to delete the last selected item from the database.
I've then used the subs ClearAll and ReadSQLTable to rebuild the table.
Sub DeleteSelectedItem
SQL1.ExecNonQuery("DELETE FROM table1 WHERE table1.Code = '" & ID & "'")
ClearAll
ReadSQLTable
End Sub
The piece of code that sets the ID is added into the end of
Sub SelectRow(Row As Int)
......
ID=GetView(Row,0).Text
Hope this helps. It removes the last selected item from the database and from the table - albeit rather crudely. You can adapt as required for your database obviously.
JMB