Sub queryDB contained no SQL query string
In Button5 Click all you attempt to do is pass the contents of edtSQL.Text as the Query.
Sub Button5_click
queryDB(edtSQL.text)
End Sub
Sub queryDB(strSQL As String)
lsvOutput.Clear()
'@@ Added Query ... Edit to suit !
Dim query As String
query = "SELECT * FROM log WHERE myField = ?"
Cursor1 = SQL1.ExecQuery2(strSQL,Array As String(strSQL))
'..............
* Also .. edtSQL is not present in layout 'Main' .. you have declared it in globals but not initialized it (error Raised)
** check button4 query ... FORM > FROM
*** a suggestion .. It might be wise to rename your buttons to something more meaningful ..