Thanks mate, that worked!
Well, it´s been 8 years since I fiddled with SQL the last time, so I´m patching my knowledge with some code here and there, and apparently the OFFSET way of doing this was the wrong one. Any idea btw. why that´s not working? Then perhaps I could learn a bit.
Also, why not use
B4X:
Log (sql3.ExecQuerySingleResult("SELECT difference FROM table2 WHERE rowid = " & (rs.GetInt("rowid"))))
The datatype is REAL, and the record was available indeed.
The problem was something else, aeric gave me the solution.
But just out of curiosity: Is there a reason to believe that the Execnonquery2 way of doing things is more reliable, correct, efficient etc. than the original one with Execnonquery?