I found that if you create a database with a table and you issue a statement like:
select sum(somefield) from table
Set Editbox to FieldString$(Sqlite3, 0)
If the table has records this works.
If the table is empty of records SQLite3 will say 1 record is returned but the sum(somefield) must be Null I guess.
This causes a problem if you are using the the SQLite3 FieldString$(SQLite3, 0). The 0 will cause MMF2 Runtime to abort if the table is empty of records but works if at least one record is in the table.
If the table is empty of records or no records are selected using a where clause then SQLite3 needs to say 0 records are returned.