29 Resultset = quick_subjects.SQLliteQuick.ExecQuery("SELECT * FROM main where subject = '" & Main.QuerySubjects & "' and attempted = 'False'")
You should only declare variables and do simple initialisation in both ProcessGlobals and Globals. You should not run code. Move the line to Activity_Create and it runs.