So very tired… I’ve read this over and over again and I cannot see why it’s not updating like it should. No errors, just no update. If anyone can see my error, I’d be very grateful.
Var ps As SQLitePreparedStatement
ps = SQLitePreparedStatement(App.DB.Prepare(“UPDATE projects SET mod_date = ? WHERE project_title = ?;”))
ps.BindType(0, SQLitePreparedStatement.SQLITE_TEXT)
ps.BindType(1, SQLitePreparedStatement.SQLITE_TEXT)
So, the correct result syntax should read ps.ExecuteSQL(some day, some story). Yeah? And I believe I need to quote out the Var names so ps.ExecuteSQL(""+Today+"", “”+thisStory+"") but that results in ps.ExecuteSQL(“some date”, “some story”) If I reduce the quotes as ps.ExecuteSQL("+Today+", “+thisStory+”), the IDE flags the variables as unused and, as you’ve pointed out, if I double quote either end, I’m passing a single string, not two.
Var values() As Variant
values.AddRow Today
values.AddRow thisStory
Var sql As String = "UPDATE projects SET mod_date = ? WHERE project_title = ?;"
App.DB.ExecuteSQL(sql, values)