two hours of searching and reading and I am no closer.
Using D5, Zeos v6 SQLite I have Table with the rows displayed in a DBGrid. All fine.
I use
DELETE FROM tblOne WHERE Acct="FirstEntry"
and it deletes the only row that matches. Still all fine - but the DBGrid display stays the same still showing the row just deleted.
I read that closing and opening the TTable assigned to tblOne will refresh the display (as will tblOne.Refresh) which is fine for this test, but sometimes I will not know which Table it is, all I will have is the Table Name. There is no "OPEN", "CLOSE" or "REFRESH" command in SQLite that I can find.
So, how can I refresh the DBGird display to show the record has been deleted?
(edit) I know I can use
dbgrid1.DataSource.DataSet.Refresh;
but, how does one refresh a display using SQL statements? Or is it not possible? (edit)
A short line of code would help to describe the process.
Thanks