1. Please post error messages and logs as text instead of screenshots.
2. Tip:
Dim FirstTime As Boolean : FirstTime = True
Can be written like this:
Dim FirstTime As Boolean = True
3. Why are you initializing the SQL object twice?
4. You can use DBUtils.CopyDBFromAssets to copy the database.
5. The FirstTime variable doesn't do anything useful. It will always be True at that point.
6. You should use parameterized queries:
Change:
Cursor1 = SQL1.ExecQuery("SELECT * FROM " & TableText & " WHERE ID = " & recordID)
To:
Cursor1 = SQL1.ExecQuery2("SELECT * FROM " & TableText & " WHERE ID = ?", Array As String (recordID))
I ran your program (test_c.zip) after fixing the initialization issue and it worked properly.