Unfortunately I've come to a complete halt again. On the line "cur = SQL.ExecQuery(Query)" in ExecuteHTML I get the persistent error "Object should first be initialized". I can see that cur is declared just before this and I can display the query, ("Select ID, Task, Notes, Category, DateAdded, Priority, ExpiryDate from Tasks"). I know this is valid for my database and table because it's just been working in an initial trial program that I created. My ShowTableInWebView is as follows:
Sub ShowTableInWebView
Dim Query As String
Query = "Select ID, Task, Notes, Category, DateAdded, Priority, ExpiryDate from " & DBTableName
Msgbox (Query, "To Do List")
WebView1.LoadHtml(DBUtils.ExecuteHtml(SQL1, Query, Null, 0, False))
End Sub
I get the same error whether I set the final parameter of ExecuteHTML to True or False. "Dim SQL1 As SQL" is in my Process_Globals. Above the error in the debugger, Table (List) shows "Not initialized" and so does cur (Cursor). I haven't edited DBUtils at all.
Any thoughts?
